Skip to content

Commit

Permalink
Atomics: update Atomics.sub to match latest proposed spec change
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed Jun 24, 2020
1 parent 529cff8 commit 729fa02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/built-ins/Atomics/sub/non-shared-bufferdata.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ testWithAtomicsFriendlyTypedArrayConstructors(TA => {
);

assert.sameValue(Atomics.store(view, 0, 1), 1, 'Atomics.store(view, 0, 1) returns 1');
assert.sameValue(Atomics.sub(view, 0, 1), 0, 'Atomics.sub(view, 0, 1) returns 0');
assert.sameValue(Atomics.sub(view, 0, 1), 1, 'Atomics.sub(view, 0, 1) returns 1');
assert.sameValue(Atomics.load(view, 0), 0, 'Atomics.load(view, 0) returns 0');
});

0 comments on commit 729fa02

Please sign in to comment.