Commit ea3d4e8
n-api: implement napi_is_detached_arraybuffer
This implements ArrayBuffer#IsDetachedBuffer operation as per ECMAScript
specification Section 24.1.1.2 https://tc39.es/ecma262/#sec-isdetachedbuffer
Closes: #29955
Backport-PR-URL: #31422
PR-URL: #30613
Fixes: #29955
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>1 parent f63e440 commit ea3d4e8Copy full SHA for ea3d4e8
File tree
Expand file treeCollapse file tree
5 files changed
+90
-0
lines changedOpen diff view settings
Filter options
- doc/api
- src
- test/js-native-api/test_typedarray
Expand file treeCollapse file tree
5 files changed
+90
-0
lines changedOpen diff view settings
Collapse file
+26Lines changed: 26 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3259 | 3259 | |
3260 | 3260 | |
3261 | 3261 | |
| 3262 | + |
| 3263 | + |
| 3264 | + |
| 3265 | + |
| 3266 | + |
| 3267 | + |
| 3268 | + |
| 3269 | + |
| 3270 | + |
| 3271 | + |
| 3272 | + |
| 3273 | + |
| 3274 | + |
| 3275 | + |
| 3276 | + |
| 3277 | + |
| 3278 | + |
| 3279 | + |
| 3280 | + |
| 3281 | + |
| 3282 | + |
| 3283 | + |
| 3284 | + |
| 3285 | + |
| 3286 | + |
3262 | 3287 | |
3263 | 3288 | |
3264 | 3289 | |
| ||
5272 | 5297 | |
5273 | 5298 | |
5274 | 5299 | |
| 5300 | + |
5275 | 5301 | |
5276 | 5302 | |
5277 | 5303 | |
|
Collapse file
+4Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
518 | 518 | |
519 | 519 | |
520 | 520 | |
| 521 | + |
| 522 | + |
| 523 | + |
| 524 | + |
521 | 525 | |
522 | 526 | |
523 | 527 | |
|
Collapse file
+15Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3060 | 3060 | |
3061 | 3061 | |
3062 | 3062 | |
| 3063 | + |
| 3064 | + |
| 3065 | + |
| 3066 | + |
| 3067 | + |
| 3068 | + |
| 3069 | + |
| 3070 | + |
| 3071 | + |
| 3072 | + |
| 3073 | + |
| 3074 | + |
| 3075 | + |
| 3076 | + |
| 3077 | + |
Collapse file
test/js-native-api/test_typedarray/test.js
Copy file name to clipboardExpand all lines: test/js-native-api/test_typedarray/test.js+13Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
87 | 87 | |
88 | 88 | |
89 | 89 | |
| 90 | + |
90 | 91 | |
| 92 | + |
91 | 93 | |
92 | 94 | |
93 | 95 | |
94 | 96 | |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | + |
Collapse file
test/js-native-api/test_typedarray/test_typedarray.c
Copy file name to clipboardExpand all lines: test/js-native-api/test_typedarray/test_typedarray.c+32Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
97 | 97 | |
98 | 98 | |
99 | 99 | |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | + |
| 108 | + |
100 | 109 | |
101 | 110 | |
102 | 111 | |
| ||
183 | 192 | |
184 | 193 | |
185 | 194 | |
| 195 | + |
| 196 | + |
| 197 | + |
| 198 | + |
| 199 | + |
| 200 | + |
| 201 | + |
| 202 | + |
| 203 | + |
| 204 | + |
| 205 | + |
| 206 | + |
| 207 | + |
| 208 | + |
| 209 | + |
| 210 | + |
| 211 | + |
| 212 | + |
| 213 | + |
| 214 | + |
| 215 | + |
186 | 216 | |
187 | 217 | |
188 | 218 | |
189 | 219 | |
190 | 220 | |
| 221 | + |
191 | 222 | |
192 | 223 | |
| 224 | + |
193 | 225 | |
194 | 226 | |
195 | 227 | |
|
0 commit comments