diff --git a/test/staging/sm/Array/toLocaleString.js b/test/staging/sm/Array/toLocaleString.js index 0a57ba5cbd..5cb7907a0e 100644 --- a/test/staging/sm/Array/toLocaleString.js +++ b/test/staging/sm/Array/toLocaleString.js @@ -8,7 +8,6 @@ description: | pending esid: pending ---*/ -"use strict"; Object.defineProperty(String.prototype, "toLocaleString", { get() { @@ -19,4 +18,3 @@ Object.defineProperty(String.prototype, "toLocaleString", { }) assert.sameValue(["test"].toLocaleString(), "string"); - diff --git a/test/staging/sm/Promise/for-of-iterator-uses-getv.js b/test/staging/sm/Promise/for-of-iterator-uses-getv.js index 7609ac7622..fd19997533 100644 --- a/test/staging/sm/Promise/for-of-iterator-uses-getv.js +++ b/test/staging/sm/Promise/for-of-iterator-uses-getv.js @@ -8,7 +8,8 @@ description: | pending esid: pending ---*/ -"use strict"; // Use strict-mode to ensure |this| arguments aren't converted to objects. + +// strict-mode to ensure |this| arguments aren't converted to objects. var emptyIterator = { next() { @@ -30,4 +31,3 @@ Object.defineProperty(Number.prototype, Symbol.iterator, { Promise.all(0); Promise.allSettled(0); Promise.race(0); - diff --git a/test/staging/sm/Proxy/proxy-no-receiver-overwrite.js b/test/staging/sm/Proxy/proxy-no-receiver-overwrite.js index 1d45f349d0..919f76e7e3 100644 --- a/test/staging/sm/Proxy/proxy-no-receiver-overwrite.js +++ b/test/staging/sm/Proxy/proxy-no-receiver-overwrite.js @@ -8,7 +8,6 @@ description: | pending esid: pending ---*/ -"use strict"; var y = new Proxy({}, { getOwnPropertyDescriptor(target, key) { @@ -28,4 +27,3 @@ var y = new Proxy({}, { // This will invoke [[Set]] on the target, with the proxy as receiver. assert.throws(TypeError, () => y.a = 1); assert.throws(TypeError, () => y.b = 2); - diff --git a/test/staging/sm/TypedArray/seal-and-freeze.js b/test/staging/sm/TypedArray/seal-and-freeze.js index ccf20d22cb..7e01d14f53 100644 --- a/test/staging/sm/TypedArray/seal-and-freeze.js +++ b/test/staging/sm/TypedArray/seal-and-freeze.js @@ -8,7 +8,6 @@ description: | pending esid: pending ---*/ -"use strict"; // Seal assert.sameValue(Object.isSealed(new Int32Array(2)), false); @@ -54,4 +53,3 @@ array = new Int32Array(1); assert.throws(TypeError, () => Object.freeze(array)); assert.sameValue(Object.isExtensible(array), false); assert.sameValue(Object.isFrozen(array), false); - diff --git a/test/staging/sm/eval/exhaustive-global-strictcaller-direct-normalcode.js b/test/staging/sm/eval/exhaustive-global-strictcaller-direct-normalcode.js index 93dc9dfd74..cc833bb2e2 100644 --- a/test/staging/sm/eval/exhaustive-global-strictcaller-direct-normalcode.js +++ b/test/staging/sm/eval/exhaustive-global-strictcaller-direct-normalcode.js @@ -10,7 +10,6 @@ description: | eval in all its myriad flavors esid: pending ---*/ -"use strict"; var x = 17; diff --git a/test/staging/sm/eval/exhaustive-global-strictcaller-direct-strictcode.js b/test/staging/sm/eval/exhaustive-global-strictcaller-direct-strictcode.js index 3c5e54c905..32a73e4664 100644 --- a/test/staging/sm/eval/exhaustive-global-strictcaller-direct-strictcode.js +++ b/test/staging/sm/eval/exhaustive-global-strictcaller-direct-strictcode.js @@ -10,7 +10,6 @@ description: | eval in all its myriad flavors esid: pending ---*/ -"use strict"; var x = 17; diff --git a/test/staging/sm/eval/exhaustive-global-strictcaller-indirect-normalcode.js b/test/staging/sm/eval/exhaustive-global-strictcaller-indirect-normalcode.js index c619f2dc22..510e199261 100644 --- a/test/staging/sm/eval/exhaustive-global-strictcaller-indirect-normalcode.js +++ b/test/staging/sm/eval/exhaustive-global-strictcaller-indirect-normalcode.js @@ -10,7 +10,6 @@ description: | eval in all its myriad flavors esid: pending ---*/ -"use strict"; var x = 17; diff --git a/test/staging/sm/eval/exhaustive-global-strictcaller-indirect-strictcode.js b/test/staging/sm/eval/exhaustive-global-strictcaller-indirect-strictcode.js index ad5271f2ec..bf0d3b3f16 100644 --- a/test/staging/sm/eval/exhaustive-global-strictcaller-indirect-strictcode.js +++ b/test/staging/sm/eval/exhaustive-global-strictcaller-indirect-strictcode.js @@ -10,7 +10,6 @@ description: | eval in all its myriad flavors esid: pending ---*/ -"use strict"; var x = 17; diff --git a/test/staging/sm/eval/undeclared-name-in-nested-strict-eval.js b/test/staging/sm/eval/undeclared-name-in-nested-strict-eval.js index 051f9d28d7..79be854dec 100644 --- a/test/staging/sm/eval/undeclared-name-in-nested-strict-eval.js +++ b/test/staging/sm/eval/undeclared-name-in-nested-strict-eval.js @@ -10,7 +10,6 @@ description: | Verify that we don't optimize free names to gnames in eval code that's global, when the name refers to a binding introduced by a strict mode eval frame esid: pending ---*/ -"use strict"; var x = "global"; assert.sameValue(eval('var x = "eval"; eval("x")'), "eval"); diff --git a/test/staging/sm/global/delete-global-NaN-property.js b/test/staging/sm/global/delete-global-NaN-property.js index ff7e023386..45bfda16dc 100644 --- a/test/staging/sm/global/delete-global-NaN-property.js +++ b/test/staging/sm/global/delete-global-NaN-property.js @@ -10,7 +10,6 @@ description: | |delete window.NaN| should throw a TypeError esid: pending ---*/ -"use strict" var g = this, v = false; try diff --git a/test/staging/sm/lexical-environment/block-scoped-functions-strict.js b/test/staging/sm/lexical-environment/block-scoped-functions-strict.js index f8e1112183..3825ae86f1 100644 --- a/test/staging/sm/lexical-environment/block-scoped-functions-strict.js +++ b/test/staging/sm/lexical-environment/block-scoped-functions-strict.js @@ -8,7 +8,6 @@ description: | pending esid: pending ---*/ -"use strict" var log = ""; diff --git a/test/staging/sm/object/toLocaleString-01.js b/test/staging/sm/object/toLocaleString-01.js index dad8621324..1965a910ee 100644 --- a/test/staging/sm/object/toLocaleString-01.js +++ b/test/staging/sm/object/toLocaleString-01.js @@ -8,7 +8,6 @@ description: | pending esid: pending ---*/ -"use strict"; Object.defineProperty(String.prototype, "toString", { get() { @@ -18,4 +17,3 @@ Object.defineProperty(String.prototype, "toString", { } }) assert.sameValue(Object.prototype.toLocaleString.call("test"), "string"); - diff --git a/test/staging/sm/regress/regress-640075.js b/test/staging/sm/regress/regress-640075.js index 27628e8ac9..ba622500cb 100644 --- a/test/staging/sm/regress/regress-640075.js +++ b/test/staging/sm/regress/regress-640075.js @@ -10,9 +10,8 @@ description: | pending esid: pending ---*/ -"use strict"; + assert.throws( SyntaxError, () => eval("(function() { eval(); function eval() {} })") ) -