File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
nova_vm/src/ecmascript/builtins/structured_data Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -680,6 +680,10 @@ impl AtomicsObject {
680680 let gc = gc. into_nogc ( ) ;
681681 // SAFETY: not shared.
682682 let typed_array = unsafe { typed_array. take ( agent) } . bind ( gc) ;
683+
684+ if c == 0 {
685+ return Ok ( 0 . into ( ) ) ;
686+ }
683687 // 5. Let buffer be typedArray.[[ViewedArrayBuffer]].
684688 let buffer = typed_array. viewed_array_buffer ( agent) ;
685689 // 7. If IsSharedArrayBuffer(buffer) is false,
Original file line number Diff line number Diff line change 238238 "built-ins/AsyncIteratorPrototype/Symbol.asyncDispose/throw-rejected-return.js": "FAIL",
239239 "built-ins/AsyncIteratorPrototype/Symbol.asyncDispose/throw-return-getter.js": "FAIL",
240240 "built-ins/AsyncIteratorPrototype/Symbol.asyncDispose/throw-return.js": "FAIL",
241- "built-ins/Atomics/notify/negative-count.js": "FAIL",
242- "built-ins/Atomics/notify/notify-nan.js": "FAIL",
243- "built-ins/Atomics/notify/notify-zero.js": "FAIL",
244241 "built-ins/Atomics/pause/descriptor.js": "FAIL",
245242 "built-ins/Atomics/pause/length.js": "FAIL",
246243 "built-ins/Atomics/pause/name.js": "FAIL",
Original file line number Diff line number Diff line change 11{
22 "results" : {
33 "crash" : 72 ,
4- "fail" : 7458 ,
5- "pass" : 39822 ,
4+ "fail" : 7455 ,
5+ "pass" : 39825 ,
66 "skip" : 3325 ,
77 "timeout" : 19 ,
88 "unresolved" : 37
You can’t perform that action at this time.
0 commit comments