Atomics: update Atomics.sub to match latest proposed spec change

https://github.com/tc39/ecma262/pull/1908#issuecomment-647614204
This commit is contained in:
Rick Waldron 2020-06-23 16:29:47 -04:00
parent 529cff8ee6
commit 729fa02951
1 changed files with 1 additions and 1 deletions

View File

@ -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');
});