diff --git a/test/staging/sm/async-functions/async-property-name-error.js b/test/staging/sm/async-functions/async-property-name-error.js index cc7d8586f8..acc0542e0d 100644 --- a/test/staging/sm/async-functions/async-property-name-error.js +++ b/test/staging/sm/async-functions/async-property-name-error.js @@ -2,12 +2,11 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | pending esid: pending ---*/ + function assertSyntaxError(code) { assert.throws(SyntaxError, () => { Function(code); }, "Function:" + code); assert.throws(SyntaxError, () => { eval(code); }, "eval:" + code); @@ -26,4 +25,3 @@ for (let decl of ["var", "let", "const"]) { assertSyntaxError(`${decl} {async async, } = {}`); assertSyntaxError(`${decl} {async async = 0} = {}`); } - diff --git a/test/staging/sm/async-functions/await-error.js b/test/staging/sm/async-functions/await-error.js index d57f7dc0c4..48cc57e27e 100644 --- a/test/staging/sm/async-functions/await-error.js +++ b/test/staging/sm/async-functions/await-error.js @@ -2,8 +2,6 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | await outside of async function should provide better error esid: pending diff --git a/test/staging/sm/async-functions/await-in-arrow-parameters.js b/test/staging/sm/async-functions/await-in-arrow-parameters.js index 2967c026a9..958f58bcd1 100644 --- a/test/staging/sm/async-functions/await-in-arrow-parameters.js +++ b/test/staging/sm/async-functions/await-in-arrow-parameters.js @@ -2,12 +2,11 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | pending esid: pending ---*/ + var ieval = eval; var AsyncFunction = async function(){}.constructor; @@ -98,5 +97,3 @@ assertSyntaxErrorAsync("(a = (b, ...await) => {}) => {}"); assertSyntaxErrorBoth("(a = async(b, ...await) => {}) => {}"); assertSyntaxErrorBoth("async(a = (b, ...await) => {}) => {}"); assertSyntaxErrorBoth("async(a = async(b, ...await) => {}) => {}"); - - diff --git a/test/staging/sm/async-functions/await-in-parameters-of-async-func.js b/test/staging/sm/async-functions/await-in-parameters-of-async-func.js index 2427e689fa..53160e5879 100644 --- a/test/staging/sm/async-functions/await-in-parameters-of-async-func.js +++ b/test/staging/sm/async-functions/await-in-parameters-of-async-func.js @@ -4,20 +4,12 @@ */ /*--- -flags: - - noStrict description: | - pending + error for incomplete await expr in async function/generator parameter esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 1478910; -var summary = 'JSMSG_AWAIT_IN_PARAMETER error for incomplete await expr in async function/generator parameter'; - -//----------------------------------------------------------------------------- test(); -//----------------------------------------------------------------------------- function test() { @@ -64,5 +56,4 @@ function test() testAwaitInDefaultExprOfAsyncFunc("async (a = await) => {}"); testNoException("async (a = async () => { await 1; }) => {}"); - } diff --git a/test/staging/sm/async-functions/constructor.js b/test/staging/sm/async-functions/constructor.js index 65d305b767..0cc98e0d2a 100644 --- a/test/staging/sm/async-functions/constructor.js +++ b/test/staging/sm/async-functions/constructor.js @@ -2,8 +2,6 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | async function constructor and prototype esid: pending diff --git a/test/staging/sm/async-functions/create-function-parse-before-getprototype.js b/test/staging/sm/async-functions/create-function-parse-before-getprototype.js index f12b0d76ec..f520fb2ada 100644 --- a/test/staging/sm/async-functions/create-function-parse-before-getprototype.js +++ b/test/staging/sm/async-functions/create-function-parse-before-getprototype.js @@ -2,12 +2,11 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | pending esid: pending ---*/ + var getProtoCalled = false; var newTarget = Object.defineProperty(function(){}.bind(), "prototype", { @@ -24,4 +23,3 @@ assert.throws(SyntaxError, () => { }); assert.sameValue(getProtoCalled, false); - diff --git a/test/staging/sm/async-functions/inner-caller.js b/test/staging/sm/async-functions/inner-caller.js index 4ec7c796a2..6a61875136 100644 --- a/test/staging/sm/async-functions/inner-caller.js +++ b/test/staging/sm/async-functions/inner-caller.js @@ -2,12 +2,11 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | pending esid: pending ---*/ + function g() { return g.caller; } @@ -22,4 +21,3 @@ function g() { var inner = g(); assert.sameValue(inner, null); })(); - diff --git a/test/staging/sm/async-functions/length.js b/test/staging/sm/async-functions/length.js index 8b190cf3be..4de6824b3d 100644 --- a/test/staging/sm/async-functions/length.js +++ b/test/staging/sm/async-functions/length.js @@ -2,8 +2,6 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | async function length esid: pending diff --git a/test/staging/sm/async-functions/no-expression-closure.js b/test/staging/sm/async-functions/no-expression-closure.js index a802419ace..a9b9696db4 100644 --- a/test/staging/sm/async-functions/no-expression-closure.js +++ b/test/staging/sm/async-functions/no-expression-closure.js @@ -2,12 +2,11 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | pending esid: pending ---*/ + function assertSyntaxError(code) { assert.throws(SyntaxError, function () { Function(code); }, "Function:" + code); assert.throws(SyntaxError, function () { eval(code); }, "eval:" + code); @@ -21,5 +20,3 @@ assertSyntaxError(`async function f() 0`); // AsyncFunction expression assertSyntaxError(`void async function() 0`); assertSyntaxError(`void async function f() 0`); - - diff --git a/test/staging/sm/async-functions/property.js b/test/staging/sm/async-functions/property.js index 1dab14ad55..eaf2f1790a 100644 --- a/test/staging/sm/async-functions/property.js +++ b/test/staging/sm/async-functions/property.js @@ -2,8 +2,6 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | async name token in property and object destructuring pattern esid: pending diff --git a/test/staging/sm/async-functions/toString.js b/test/staging/sm/async-functions/toString.js index dc26c2674c..53e203e04c 100644 --- a/test/staging/sm/async-functions/toString.js +++ b/test/staging/sm/async-functions/toString.js @@ -2,8 +2,6 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | async function toString esid: pending