Remove test for old behavior for Atomics.pause

This commit is contained in:
Shu-yu Guo 2024-09-20 13:14:53 -07:00 committed by Philip Chimento
parent 474af83250
commit fcfb11da77
1 changed files with 0 additions and 19 deletions

View File

@ -1,19 +0,0 @@
// Copyright 2024 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-atomics.pause
description: Atomics.pause throws on negative argument values
features: [Atomics.pause]
---*/
const values = [
-1,
Number.MIN_SAFE_INTEGER,
Number.MIN_SAFE_INTEGER - 1
];
for (const v of values) {
assert.throws(RangeError, () => { Atomics.pause(v); },
`${v} is an illegal iterationNumber`);
}