Fix: some templates in Forbidden Extensions needed explicit paths.

This commit is contained in:
Rick Waldron 2020-09-25 10:32:23 -04:00
parent e3b12065b2
commit 1a1b1770e8
66 changed files with 134 additions and 133 deletions

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/arrow-function/ path: language/expressions/arrow-function/forbidden-ext/b1/arrow-function-
name: arrow function expression name: arrow function expression
esid: sec-arrow-function-definitions-runtime-semantics-evaluation esid: sec-arrow-function-definitions-runtime-semantics-evaluation
info: | info: |
@ -12,7 +12,7 @@ var callCount = 0;
var f; var f;
f = (/*{ params }*/) => { f = (/*{ params }*/) => {
/*{ function-body }*/ /*{ function-body }*/
callCount = callCount + 1; callCount++;
}; };
assert.throws(/*{ error }*/, function() { assert.throws(/*{ error }*/, function() {

View File

@ -2,7 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/async-arrow-function/ path: language/expressions/async-arrow-function/forbidden-ext/b1/async-arrow-function-
name: async arrow function expression name: async arrow function expression
esid: sec-async-arrow-function-definitions esid: sec-async-arrow-function-definitions
info: | info: |
@ -21,7 +21,7 @@ var callCount = 0;
var f; var f;
f = async (/*{ params }*/) => { f = async (/*{ params }*/) => {
/*{ function-body }*/ /*{ function-body }*/
callCount = callCount + 1; callCount++;
}; };
f(/*{ args }*/) f(/*{ args }*/)

View File

@ -2,7 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/statements/async-function/ path: language/statements/async-function/forbidden-ext/b1/async-func-decl-
name: async function declaration name: async function declaration
esid: sec-async-function-definitions esid: sec-async-function-definitions
info: | info: |
@ -15,7 +15,7 @@ features: [async-functions]
var callCount = 0; var callCount = 0;
async function f(/*{ params }*/) { async function f(/*{ params }*/) {
/*{ function-body }*/ /*{ function-body }*/
callCount = callCount + 1; callCount++;
} }
f(/*{ args }*/) f(/*{ args }*/)

View File

@ -2,7 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/async-function/named- path: language/expressions/async-function/forbidden-ext/b1/async-func-expr-named-
name: async function named expression name: async function named expression
esid: sec-async-function-definitions esid: sec-async-function-definitions
info: | info: |
@ -15,7 +15,7 @@ features: [async-functions]
var callCount = 0; var callCount = 0;
var f = async function f(/*{ params }*/) { var f = async function f(/*{ params }*/) {
/*{ function-body }*/ /*{ function-body }*/
callCount = callCount + 1; callCount++;
} }
f(/*{ args }*/) f(/*{ args }*/)

View File

@ -2,7 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/async-function/nameless- path: language/expressions/async-function/forbidden-ext/b1/async-func-expr-nameless-
name: async function nameless expression name: async function nameless expression
esid: sec-async-function-definitions esid: sec-async-function-definitions
info: | info: |
@ -15,7 +15,7 @@ features: [async-functions]
var callCount = 0; var callCount = 0;
var f = async function(/*{ params }*/) { var f = async function(/*{ params }*/) {
/*{ function-body }*/ /*{ function-body }*/
callCount = callCount + 1; callCount++;
} }
f(/*{ args }*/) f(/*{ args }*/)

View File

@ -2,7 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/statements/async-generator/ path: language/statements/async-generator/forbidden-ext/b1/async-gen-func-decl-
name: async generator function declaration name: async generator function declaration
esid: sec-asyncgenerator-definitions-instantiatefunctionobject esid: sec-asyncgenerator-definitions-instantiatefunctionobject
info: | info: |
@ -16,7 +16,7 @@ flags: [async]
var callCount = 0; var callCount = 0;
async function* f(/*{ params }*/) { async function* f(/*{ params }*/) {
/*{ function-body }*/ /*{ function-body }*/
callCount = callCount + 1; callCount++;
} }
f(/*{ args }*/).next() f(/*{ args }*/).next()

View File

@ -2,7 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/async-generator/ path: language/expressions/async-generator/forbidden-ext/b1/async-gen-func-expr-
name: async generator function expression name: async generator function expression
esid: sec-asyncgenerator-definitions-evaluation esid: sec-asyncgenerator-definitions-evaluation
info: | info: |
@ -17,7 +17,7 @@ var callCount = 0;
var f; var f;
f = async function*(/*{ params }*/) { f = async function*(/*{ params }*/) {
/*{ function-body }*/ /*{ function-body }*/
callCount = callCount + 1; callCount++;
}; };
f(/*{ args }*/).next() f(/*{ args }*/).next()

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/object/method-definition/async-gen-meth- path: language/expressions/object/method-definition/forbidden-ext/b1/async-gen-meth-
name: async generator method name: async generator method
esid: sec-asyncgenerator-definitions-propertydefinitionevaluation esid: sec-asyncgenerator-definitions-propertydefinitionevaluation
info: | info: |
@ -17,7 +17,7 @@ var callCount = 0;
var obj = { var obj = {
async *method(/*{ params }*/) { async *method(/*{ params }*/) {
/*{ method-body }*/ /*{ method-body }*/
callCount = callCount + 1; callCount++;
} }
}; };

View File

@ -2,7 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/async-generator/named- path: language/expressions/async-generator/forbidden-ext/b1/async-gen-named-func-expr-
name: async generator named function expression name: async generator named function expression
esid: sec-asyncgenerator-definitions-evaluation esid: sec-asyncgenerator-definitions-evaluation
info: | info: |
@ -17,7 +17,7 @@ var callCount = 0;
var f; var f;
f = async function* g(/*{ params }*/) { f = async function* g(/*{ params }*/) {
/*{ function-body }*/ /*{ function-body }*/
callCount = callCount + 1; callCount++;
}; };
f(/*{ args }*/).next() f(/*{ args }*/).next()

View File

@ -2,7 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/object/method-definition/async-meth- path: language/expressions/object/method-definition/forbidden-ext/b1/async-meth-
name: async method name: async method
esid: sec-async-function-definitions esid: sec-async-function-definitions
info: | info: |
@ -17,7 +17,7 @@ var callCount = 0;
var obj = { var obj = {
async method(/*{ params }*/) { async method(/*{ params }*/) {
/*{ method-body }*/ /*{ method-body }*/
callCount = callCount + 1; callCount++;
} }
}; };

View File

@ -2,7 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/statements/class/async-gen-method-static/ path: language/statements/class/async-gen-method-static/forbidden-ext/b1/cls-decl-async-gen-meth-static-
name: static class expression generator method name: static class expression generator method
esid: sec-runtime-semantics-bindingclassdeclarationevaluation esid: sec-runtime-semantics-bindingclassdeclarationevaluation
info: | info: |
@ -15,7 +15,7 @@ var callCount = 0;
class C { class C {
static async *method(/*{ params }*/) { static async *method(/*{ params }*/) {
/*{ method-body }*/ /*{ method-body }*/
callCount = callCount + 1; callCount++;
} }
} }

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/statements/class/async-gen-method/ path: language/statements/class/async-gen-method/forbidden-ext/b1/cls-decl-async-gen-meth-
name: class expression method name: class expression method
esid: sec-class-definitions-runtime-semantics-evaluation esid: sec-class-definitions-runtime-semantics-evaluation
info: | info: |
@ -14,7 +14,7 @@ var callCount = 0;
class C { class C {
async *method(/*{ params }*/) { async *method(/*{ params }*/) {
/*{ method-body }*/ /*{ method-body }*/
callCount = callCount + 1; callCount++;
} }
} }

View File

@ -2,7 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/statements/class/async-method-static/ path: language/statements/class/async-method-static/forbidden-ext/b1/cls-decl-async-meth-static-
name: static class declaration async method name: static class declaration async method
esid: sec-runtime-semantics-bindingclassdeclarationevaluation esid: sec-runtime-semantics-bindingclassdeclarationevaluation
info: | info: |
@ -15,7 +15,7 @@ var callCount = 0;
class C { class C {
static async method(/*{ params }*/) { static async method(/*{ params }*/) {
/*{ method-body }*/ /*{ method-body }*/
callCount = callCount + 1; callCount++;
} }
} }

View File

@ -2,7 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/statements/class/async-method/ path: language/statements/class/async-method/forbidden-ext/b1/cls-decl-async-meth-
name: class declaration async method name: class declaration async method
esid: sec-class-definitions-runtime-semantics-evaluation esid: sec-class-definitions-runtime-semantics-evaluation
info: | info: |
@ -15,7 +15,7 @@ var callCount = 0;
class C { class C {
async method(/*{ params }*/) { async method(/*{ params }*/) {
/*{ method-body }*/ /*{ method-body }*/
callCount = callCount + 1; callCount++;
} }
} }

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/statements/class/gen-method-static/ path: language/statements/class/gen-method-static/forbidden-ext/b1/cls-decl-gen-meth-static-
name: static class expression generator method name: static class expression generator method
esid: sec-runtime-semantics-bindingclassdeclarationevaluation esid: sec-runtime-semantics-bindingclassdeclarationevaluation
info: | info: |
@ -13,7 +13,7 @@ var callCount = 0;
class C { class C {
static *method(/*{ params }*/) { static *method(/*{ params }*/) {
/*{ method-body }*/ /*{ method-body }*/
callCount = callCount + 1; callCount++;
} }
} }

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/statements/class/gen-method/ path: language/statements/class/gen-method/forbidden-ext/b1/cls-decl-gen-meth-
name: class expression method name: class expression method
esid: sec-class-definitions-runtime-semantics-evaluation esid: sec-class-definitions-runtime-semantics-evaluation
info: | info: |
@ -13,7 +13,7 @@ var callCount = 0;
class C { class C {
*method(/*{ params }*/) { *method(/*{ params }*/) {
/*{ method-body }*/ /*{ method-body }*/
callCount = callCount + 1; callCount++;
} }
} }

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/statements/class/method-static/ path: language/statements/class/method-static/forbidden-ext/b1/cls-decl-meth-static-
name: static class expression method name: static class expression method
esid: sec-runtime-semantics-bindingclassdeclarationevaluation esid: sec-runtime-semantics-bindingclassdeclarationevaluation
info: | info: |
@ -12,7 +12,7 @@ var callCount = 0;
class C { class C {
static method(/*{ params }*/) { static method(/*{ params }*/) {
/*{ method-body }*/ /*{ method-body }*/
callCount = callCount + 1; callCount++;
} }
} }

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/statements/class/method/ path: language/statements/class/method/forbidden-ext/b1/cls-decl-meth-
name: class expression method name: class expression method
esid: sec-runtime-semantics-bindingclassdeclarationevaluation esid: sec-runtime-semantics-bindingclassdeclarationevaluation
info: | info: |
@ -12,7 +12,7 @@ var callCount = 0;
class C { class C {
method(/*{ params }*/) { method(/*{ params }*/) {
/*{ method-body }*/ /*{ method-body }*/
callCount = callCount + 1; callCount++;
} }
} }

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/class/async-gen-method-static/ path: language/expressions/class/async-gen-method-static/forbidden-ext/b1/cls-expr-async-gen-meth-static-
name: static class expression async generator method name: static class expression async generator method
esid: sec-class-definitions-runtime-semantics-evaluation esid: sec-class-definitions-runtime-semantics-evaluation
info: | info: |
@ -14,7 +14,7 @@ var callCount = 0;
var C = class { var C = class {
static async *method(/*{ params }*/) { static async *method(/*{ params }*/) {
/*{ method-body }*/ /*{ method-body }*/
callCount = callCount + 1; callCount++;
} }
}; };

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/class/async-gen-method/ path: language/expressions/class/async-gen-method/forbidden-ext/b1/cls-expr-async-gen-meth-
name: class expression async generator method name: class expression async generator method
esid: sec-class-definitions-runtime-semantics-evaluation esid: sec-class-definitions-runtime-semantics-evaluation
info: | info: |
@ -14,7 +14,7 @@ var callCount = 0;
var C = class { var C = class {
async *method(/*{ params }*/) { async *method(/*{ params }*/) {
/*{ method-body }*/ /*{ method-body }*/
callCount = callCount + 1; callCount++;
} }
}; };

View File

@ -2,7 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/class/async-method-static/ path: language/expressions/class/async-method-static/forbidden-ext/b1/cls-expr-async-meth-static-
name: static class expression async method name: static class expression async method
esid: sec-class-definitions-runtime-semantics-evaluation esid: sec-class-definitions-runtime-semantics-evaluation
info: | info: |
@ -16,7 +16,7 @@ var callCount = 0;
var C = class { var C = class {
static async method(/*{ params }*/) { static async method(/*{ params }*/) {
/*{ method-body }*/ /*{ method-body }*/
callCount = callCount + 1; callCount++;
} }
}; };

View File

@ -2,7 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/class/async-method/ path: language/expressions/class/async-method/forbidden-ext/b1/cls-expr-async-meth-
name: class expression async method name: class expression async method
esid: sec-class-definitions-runtime-semantics-evaluation esid: sec-class-definitions-runtime-semantics-evaluation
info: | info: |
@ -15,7 +15,7 @@ var callCount = 0;
var C = class { var C = class {
async method(/*{ params }*/) { async method(/*{ params }*/) {
/*{ method-body }*/ /*{ method-body }*/
callCount = callCount + 1; callCount++;
} }
}; };

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/class/gen-method-static/ path: language/expressions/class/gen-method-static/forbidden-ext/b1/cls-expr-gen-meth-static-
name: static class expression generator method name: static class expression generator method
esid: sec-class-definitions-runtime-semantics-evaluation esid: sec-class-definitions-runtime-semantics-evaluation
info: | info: |
@ -13,7 +13,7 @@ var callCount = 0;
var C = class { var C = class {
static *method(/*{ params }*/) { static *method(/*{ params }*/) {
/*{ method-body }*/ /*{ method-body }*/
callCount = callCount + 1; callCount++;
} }
}; };

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/class/gen-method/ path: language/expressions/class/gen-method/forbidden-ext/b1/cls-expr-gen-meth-
name: class expression method name: class expression method
esid: sec-class-definitions-runtime-semantics-evaluation esid: sec-class-definitions-runtime-semantics-evaluation
info: | info: |
@ -13,7 +13,7 @@ var callCount = 0;
var C = class { var C = class {
*method(/*{ params }*/) { *method(/*{ params }*/) {
/*{ method-body }*/ /*{ method-body }*/
callCount = callCount + 1; callCount++;
} }
}; };

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/class/method-static/ path: language/expressions/class/method-static/forbidden-ext/b1/cls-expr-meth-static-
name: static class expression method name: static class expression method
esid: sec-class-definitions-runtime-semantics-evaluation esid: sec-class-definitions-runtime-semantics-evaluation
info: | info: |
@ -12,7 +12,7 @@ var callCount = 0;
var C = class { var C = class {
static method(/*{ params }*/) { static method(/*{ params }*/) {
/*{ method-body }*/ /*{ method-body }*/
callCount = callCount + 1; callCount++;
} }
}; };

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/class/method/ path: language/expressions/class/method/forbidden-ext/b1/cls-expr-meth-
name: class expression method name: class expression method
esid: sec-class-definitions-runtime-semantics-evaluation esid: sec-class-definitions-runtime-semantics-evaluation
info: | info: |
@ -12,7 +12,7 @@ var callCount = 0;
var C = class { var C = class {
method(/*{ params }*/) { method(/*{ params }*/) {
/*{ method-body }*/ /*{ method-body }*/
callCount = callCount + 1; callCount++;
} }
}; };

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/statements/function/ path: language/statements/function/forbidden-ext/b1/cls-expr-meth-
name: function declaration name: function declaration
esid: sec-function-definitions-runtime-semantics-instantiatefunctionobject esid: sec-function-definitions-runtime-semantics-instantiatefunctionobject
info: | info: |
@ -13,7 +13,7 @@ var callCount = 0;
function f(/*{ params }*/) { function f(/*{ params }*/) {
"use strict"; "use strict";
/*{ function-body }*/ /*{ function-body }*/
callCount = callCount + 1; callCount++;
} }
assert.throws(/*{ error }*/, function() { assert.throws(/*{ error }*/, function() {
f(/*{ args }*/); f(/*{ args }*/);

View File

@ -1,9 +1,10 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/statements/function/ path: language/statements/function/forbidden-ext/b1/func-decl-
name: function declaration name: function declaration
esid: sec-function-definitions-runtime-semantics-instantiatefunctionobject esid: sec-function-definitions-runtime-semantics-instantiatefunctionobject
desc: In non-strict code, f.caller is not forbidden
info: | info: |
FunctionDeclaration : FunctionDeclaration :
function BindingIdentifier ( FormalParameters ) { FunctionBody } function BindingIdentifier ( FormalParameters ) { FunctionBody }
@ -12,7 +13,7 @@ info: |
var callCount = 0; var callCount = 0;
function f(/*{ params }*/) { function f(/*{ params }*/) {
/*{ function-body }*/ /*{ function-body }*/
callCount = callCount + 1; callCount++;
} }
f(/*{ args }*/); f(/*{ args }*/);
assert.sameValue(callCount, 0, 'function was evaluated'); assert.sameValue(callCount, 1, 'function was evaluated');

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/function/ path: language/expressions/function/forbidden-ext/b1/func-expr-strict-
name: function expression name: function expression
esid: sec-function-definitions-runtime-semantics-evaluation esid: sec-function-definitions-runtime-semantics-evaluation
info: | info: |
@ -13,7 +13,7 @@ var f;
f = function(/*{ params }*/) { f = function(/*{ params }*/) {
"use strict"; "use strict";
/*{ function-body }*/ /*{ function-body }*/
callCount = callCount + 1; callCount++;
}; };
assert.throws(/*{ error }*/, function() { assert.throws(/*{ error }*/, function() {
f(/*{ args }*/); f(/*{ args }*/);

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/function/ path: language/expressions/function/forbidden-ext/b1/func-expr-
name: function expression name: function expression
esid: sec-function-definitions-runtime-semantics-evaluation esid: sec-function-definitions-runtime-semantics-evaluation
info: | info: |
@ -12,7 +12,7 @@ var callCount = 0;
var f; var f;
f = function(/*{ params }*/) { f = function(/*{ params }*/) {
/*{ function-body }*/ /*{ function-body }*/
callCount = callCount + 1; callCount++;
}; };
f(/*{ args }*/); f(/*{ args }*/);

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/statements/generators/ path: language/statements/generators/forbidden-ext/b1/gen-func-decl-
name: generator function declaration name: generator function declaration
esid: sec-generator-function-definitions-runtime-semantics-instantiatefunctionobject esid: sec-generator-function-definitions-runtime-semantics-instantiatefunctionobject
info: | info: |
@ -12,7 +12,7 @@ features: [generators]
var callCount = 0; var callCount = 0;
function* f(/*{ params }*/) { function* f(/*{ params }*/) {
/*{ function-body }*/ /*{ function-body }*/
callCount = callCount + 1; callCount++;
} }
assert.throws(/*{ error }*/, function() { assert.throws(/*{ error }*/, function() {

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/generators/ path: language/expressions/generators/forbidden-ext/b1/gen-func-expr-
name: generator function expression name: generator function expression
esid: sec-generator-function-definitions-runtime-semantics-evaluation esid: sec-generator-function-definitions-runtime-semantics-evaluation
info: | info: |
@ -13,7 +13,7 @@ var callCount = 0;
var f; var f;
f = function*(/*{ params }*/) { f = function*(/*{ params }*/) {
/*{ function-body }*/ /*{ function-body }*/
callCount = callCount + 1; callCount++;
}; };
assert.throws(/*{ error }*/, function() { assert.throws(/*{ error }*/, function() {

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/object/method-definition/gen-meth- path: language/expressions/object/method-definition/forbidden-ext/b1/gen-meth-
name: generator method name: generator method
esid: sec-generator-function-definitions-runtime-semantics-propertydefinitionevaluation esid: sec-generator-function-definitions-runtime-semantics-propertydefinitionevaluation
info: | info: |
@ -15,7 +15,7 @@ var callCount = 0;
var obj = { var obj = {
*method(/*{ params }*/) { *method(/*{ params }*/) {
/*{ method-body }*/ /*{ method-body }*/
callCount = callCount + 1; callCount++;
} }
}; };

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/object/method-definition/meth- path: language/expressions/object/method-definition/forbidden-ext/b1/meth-
name: method name: method
esid: sec-runtime-semantics-definemethod esid: sec-runtime-semantics-definemethod
info: | info: |
@ -12,7 +12,7 @@ var callCount = 0;
var obj = { var obj = {
method(/*{ params }*/) { method(/*{ params }*/) {
/*{ method-body }*/ /*{ method-body }*/
callCount = callCount + 1; callCount++;
} }
}; };

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/arrow-function/ path: language/expressions/arrow-function/forbidden-ext/b2/arrow-function-
name: arrow function expression name: arrow function expression
esid: sec-arrow-definitions-runtime-semantics-evaluation esid: sec-arrow-definitions-runtime-semantics-evaluation
info: | info: |
@ -13,7 +13,7 @@ var f;
f = (/*{ params }*/) => { f = (/*{ params }*/) => {
"use strict"; "use strict";
/*{ body }*/ /*{ body }*/
callCount = callCount + 1; callCount++;
}; };
assert.throws(/*{ error }*/, function() { assert.throws(/*{ error }*/, function() {

View File

@ -2,7 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/async-arrow-function/ path: language/expressions/async-arrow-function/forbidden-ext/b2/async-arrow-function-
name: async arrow function expression name: async arrow function expression
esid: sec-async-arrow-definitions esid: sec-async-arrow-definitions
info: | info: |
@ -22,7 +22,7 @@ var f;
f = async (/*{ params }*/) => { f = async (/*{ params }*/) => {
"use strict"; "use strict";
/*{ body }*/ /*{ body }*/
callCount = callCount + 1; callCount++;
}; };
f(/*{ args }*/) f(/*{ args }*/)

View File

@ -2,7 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/statements/async-function/ path: language/statements/async-function/forbidden-ext/b2/async-func-decl-
name: async function declaration name: async function declaration
esid: sec-async-definitions esid: sec-async-definitions
info: | info: |
@ -16,7 +16,7 @@ var callCount = 0;
async function f(/*{ params }*/) { async function f(/*{ params }*/) {
"use strict"; "use strict";
/*{ body }*/ /*{ body }*/
callCount = callCount + 1; callCount++;
} }
f(/*{ args }*/) f(/*{ args }*/)

View File

@ -2,7 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/async-function/named- path: language/expressions/async-function/forbidden-ext/b2/async-func-expr-named-
name: async function named expression name: async function named expression
esid: sec-async-definitions esid: sec-async-definitions
info: | info: |
@ -16,7 +16,7 @@ var callCount = 0;
var f = async function f(/*{ params }*/) { var f = async function f(/*{ params }*/) {
"use strict"; "use strict";
/*{ body }*/ /*{ body }*/
callCount = callCount + 1; callCount++;
} }
f(/*{ args }*/) f(/*{ args }*/)

View File

@ -2,7 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/async-function/nameless- path: language/expressions/async-function/forbidden-ext/b2/async-func-expr-nameless-
name: async function nameless expression name: async function nameless expression
esid: sec-async-definitions esid: sec-async-definitions
info: | info: |
@ -16,7 +16,7 @@ var callCount = 0;
var f = async function(/*{ params }*/) { var f = async function(/*{ params }*/) {
"use strict"; "use strict";
/*{ body }*/ /*{ body }*/
callCount = callCount + 1; callCount++;
} }
f(/*{ args }*/) f(/*{ args }*/)

View File

@ -2,7 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/statements/async-generator/ path: language/statements/async-generator/forbidden-ext/b2/async-gen-func-decl-
name: async generator function declaration name: async generator function declaration
esid: sec-asyncgenerator-definitions-instantiatefunctionobject esid: sec-asyncgenerator-definitions-instantiatefunctionobject
info: | info: |
@ -17,7 +17,7 @@ var callCount = 0;
async function* f(/*{ params }*/) { async function* f(/*{ params }*/) {
"use strict"; "use strict";
/*{ body }*/ /*{ body }*/
callCount = callCount + 1; callCount++;
} }
f(/*{ args }*/).next() f(/*{ args }*/).next()

View File

@ -2,7 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/async-generator/ path: language/expressions/async-generator/forbidden-ext/b2/async-gen-func-expr-
name: async generator function expression name: async generator function expression
esid: sec-asyncgenerator-definitions-evaluation esid: sec-asyncgenerator-definitions-evaluation
info: | info: |
@ -18,7 +18,7 @@ var f;
f = async function*(/*{ params }*/) { f = async function*(/*{ params }*/) {
"use strict"; "use strict";
/*{ body }*/ /*{ body }*/
callCount = callCount + 1; callCount++;
}; };
f(/*{ args }*/).next() f(/*{ args }*/).next()

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/object/method-definition/async-gen-meth- path: language/expressions/object/method-definition/forbidden-ext/b2/async-gen-meth-
name: async generator method name: async generator method
esid: sec-asyncgenerator-definitions-propertydefinitionevaluation esid: sec-asyncgenerator-definitions-propertydefinitionevaluation
info: | info: |
@ -18,7 +18,7 @@ var obj = {
async *method(/*{ params }*/) { async *method(/*{ params }*/) {
"use strict"; "use strict";
/*{ body }*/ /*{ body }*/
callCount = callCount + 1; callCount++;
} }
}; };

View File

@ -2,7 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/async-generator/named- path: language/expressions/async-generator/forbidden-ext/b2/async-gen-named-func-expr-
name: async generator named function expression name: async generator named function expression
esid: sec-asyncgenerator-definitions-evaluation esid: sec-asyncgenerator-definitions-evaluation
info: | info: |
@ -18,7 +18,7 @@ var f;
f = async function* g(/*{ params }*/) { f = async function* g(/*{ params }*/) {
"use strict"; "use strict";
/*{ body }*/ /*{ body }*/
callCount = callCount + 1; callCount++;
}; };
f(/*{ args }*/).next() f(/*{ args }*/).next()

View File

@ -2,7 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/object/method-definition/async-meth- path: language/expressions/object/method-definition/forbidden-ext/b2/async-meth-
name: async method name: async method
esid: sec-async-definitions esid: sec-async-definitions
info: | info: |
@ -18,7 +18,7 @@ var obj = {
async method(/*{ params }*/) { async method(/*{ params }*/) {
"use strict"; "use strict";
/*{ body }*/ /*{ body }*/
callCount = callCount + 1; callCount++;
} }
}; };

View File

@ -2,7 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/statements/class/async-gen-method-static/ path: language/statements/class/async-gen-method-static/forbidden-ext/b2/cls-decl-async-gen-meth-static-
name: static class expression generator method name: static class expression generator method
esid: sec-runtime-semantics-bindingclassdeclarationevaluation esid: sec-runtime-semantics-bindingclassdeclarationevaluation
info: | info: |
@ -16,7 +16,7 @@ class C {
static async *method(/*{ params }*/) { static async *method(/*{ params }*/) {
/* implicit strict */ /* implicit strict */
/*{ body }*/ /*{ body }*/
callCount = callCount + 1; callCount++;
} }
} }

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/statements/class/async-gen-method/ path: language/statements/class/async-gen-method/forbidden-ext/b2/cls-decl-async-gen-meth-
name: class expression method name: class expression method
esid: sec-class-definitions-runtime-semantics-evaluation esid: sec-class-definitions-runtime-semantics-evaluation
info: | info: |
@ -15,7 +15,7 @@ class C {
async *method(/*{ params }*/) { async *method(/*{ params }*/) {
/* implicit strict */ /* implicit strict */
/*{ body }*/ /*{ body }*/
callCount = callCount + 1; callCount++;
} }
} }

View File

@ -2,7 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/statements/class/async-method-static/ path: language/statements/class/async-method-static/forbidden-ext/b2/cls-decl-async-meth-static-
name: static class declaration async method name: static class declaration async method
esid: sec-runtime-semantics-bindingclassdeclarationevaluation esid: sec-runtime-semantics-bindingclassdeclarationevaluation
info: | info: |
@ -16,7 +16,7 @@ class C {
static async method(/*{ params }*/) { static async method(/*{ params }*/) {
/* implicit strict */ /* implicit strict */
/*{ body }*/ /*{ body }*/
callCount = callCount + 1; callCount++;
} }
} }

View File

@ -2,7 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/statements/class/async-method/ path: language/statements/class/async-method/forbidden-ext/b2/cls-decl-async-meth-
name: class declaration async method name: class declaration async method
esid: sec-class-definitions-runtime-semantics-evaluation esid: sec-class-definitions-runtime-semantics-evaluation
info: | info: |
@ -16,7 +16,7 @@ class C {
async method(/*{ params }*/) { async method(/*{ params }*/) {
/* implicit strict */ /* implicit strict */
/*{ body }*/ /*{ body }*/
callCount = callCount + 1; callCount++;
} }
} }

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/statements/class/gen-method-static/ path: language/statements/class/gen-method-static/forbidden-ext/b2/cls-decl-gen-meth-static-
name: static class expression generator method name: static class expression generator method
esid: sec-runtime-semantics-bindingclassdeclarationevaluation esid: sec-runtime-semantics-bindingclassdeclarationevaluation
info: | info: |
@ -14,7 +14,7 @@ class C {
static *method(/*{ params }*/) { static *method(/*{ params }*/) {
/* implicit strict */ /* implicit strict */
/*{ body }*/ /*{ body }*/
callCount = callCount + 1; callCount++;
} }
} }

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/statements/class/gen-method/ path: language/statements/class/gen-method/forbidden-ext/b2/cls-decl-gen-meth-
name: class expression method name: class expression method
esid: sec-class-definitions-runtime-semantics-evaluation esid: sec-class-definitions-runtime-semantics-evaluation
info: | info: |
@ -14,7 +14,7 @@ class C {
*method(/*{ params }*/) { *method(/*{ params }*/) {
/* implicit strict */ /* implicit strict */
/*{ body }*/ /*{ body }*/
callCount = callCount + 1; callCount++;
} }
} }

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/statements/class/method-static/ path: language/statements/class/method-static/forbidden-ext/b2/cls-decl-meth-static-
name: static class expression method name: static class expression method
esid: sec-runtime-semantics-bindingclassdeclarationevaluation esid: sec-runtime-semantics-bindingclassdeclarationevaluation
info: | info: |
@ -13,7 +13,7 @@ class C {
static method(/*{ params }*/) { static method(/*{ params }*/) {
/* implicit strict */ /* implicit strict */
/*{ body }*/ /*{ body }*/
callCount = callCount + 1; callCount++;
} }
} }

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/statements/class/method/ path: language/statements/class/method/forbidden-ext/b2/cls-decl-meth-
name: class expression method name: class expression method
esid: sec-runtime-semantics-bindingclassdeclarationevaluation esid: sec-runtime-semantics-bindingclassdeclarationevaluation
info: | info: |
@ -13,7 +13,7 @@ class C {
method(/*{ params }*/) { method(/*{ params }*/) {
/* implicit strict */ /* implicit strict */
/*{ body }*/ /*{ body }*/
callCount = callCount + 1; callCount++;
} }
} }

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/class/async-gen-method-static/ path: language/expressions/class/async-gen-method-static/forbidden-ext/b2/cls-expr-async-gen-meth-static-
name: static class expression async generator method name: static class expression async generator method
esid: sec-class-definitions-runtime-semantics-evaluation esid: sec-class-definitions-runtime-semantics-evaluation
info: | info: |
@ -15,7 +15,7 @@ var C = class {
static async *method(/*{ params }*/) { static async *method(/*{ params }*/) {
/* implicit strict */ /* implicit strict */
/*{ body }*/ /*{ body }*/
callCount = callCount + 1; callCount++;
} }
}; };

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/class/async-gen-method/ path: language/expressions/class/async-gen-method/forbidden-ext/b2/cls-expr-async-gen-meth-
name: class expression async generator method name: class expression async generator method
esid: sec-class-definitions-runtime-semantics-evaluation esid: sec-class-definitions-runtime-semantics-evaluation
info: | info: |
@ -15,7 +15,7 @@ var C = class {
async *method(/*{ params }*/) { async *method(/*{ params }*/) {
/* implicit strict */ /* implicit strict */
/*{ body }*/ /*{ body }*/
callCount = callCount + 1; callCount++;
} }
}; };

View File

@ -2,7 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/class/async-method-static/ path: language/expressions/class/async-method-static/forbidden-ext/b2/cls-expr-async-meth-static-
name: static class expression async method name: static class expression async method
esid: sec-class-definitions-runtime-semantics-evaluation esid: sec-class-definitions-runtime-semantics-evaluation
info: | info: |
@ -17,7 +17,7 @@ var C = class {
static async method(/*{ params }*/) { static async method(/*{ params }*/) {
/* implicit strict */ /* implicit strict */
/*{ body }*/ /*{ body }*/
callCount = callCount + 1; callCount++;
} }
}; };

View File

@ -2,7 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/class/async-method/ path: language/expressions/class/async-method/forbidden-ext/b2/cls-expr-async-meth-
name: class expression async method name: class expression async method
esid: sec-class-definitions-runtime-semantics-evaluation esid: sec-class-definitions-runtime-semantics-evaluation
info: | info: |
@ -16,7 +16,7 @@ var C = class {
async method(/*{ params }*/) { async method(/*{ params }*/) {
/* implicit strict */ /* implicit strict */
/*{ body }*/ /*{ body }*/
callCount = callCount + 1; callCount++;
} }
}; };

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/class/gen-method-static/ path: language/expressions/class/gen-method-static/forbidden-ext/b2/cls-expr-gen-meth-static-
name: static class expression generator method name: static class expression generator method
esid: sec-class-definitions-runtime-semantics-evaluation esid: sec-class-definitions-runtime-semantics-evaluation
info: | info: |
@ -14,7 +14,7 @@ var C = class {
static *method(/*{ params }*/) { static *method(/*{ params }*/) {
/* implicit strict */ /* implicit strict */
/*{ body }*/ /*{ body }*/
callCount = callCount + 1; callCount++;
} }
}; };

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/class/gen-method/ path: language/expressions/class/gen-method/forbidden-ext/b2/cls-expr-gen-meth-
name: class expression method name: class expression method
esid: sec-class-definitions-runtime-semantics-evaluation esid: sec-class-definitions-runtime-semantics-evaluation
info: | info: |
@ -14,7 +14,7 @@ var C = class {
*method(/*{ params }*/) { *method(/*{ params }*/) {
/* implicit strict */ /* implicit strict */
/*{ body }*/ /*{ body }*/
callCount = callCount + 1; callCount++;
} }
}; };

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/class/method-static/ path: language/expressions/class/method-static/forbidden-ext/b2/cls-expr-meth-static-
name: static class expression method name: static class expression method
esid: sec-class-definitions-runtime-semantics-evaluation esid: sec-class-definitions-runtime-semantics-evaluation
info: | info: |
@ -13,7 +13,7 @@ var C = class {
static method(/*{ params }*/) { static method(/*{ params }*/) {
/* implicit strict */ /* implicit strict */
/*{ body }*/ /*{ body }*/
callCount = callCount + 1; callCount++;
} }
}; };

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/class/method/ path: language/expressions/class/method/forbidden-ext/b2/cls-expr-meth-
name: class expression method name: class expression method
esid: sec-class-definitions-runtime-semantics-evaluation esid: sec-class-definitions-runtime-semantics-evaluation
info: | info: |
@ -13,7 +13,7 @@ var C = class {
method(/*{ params }*/) { method(/*{ params }*/) {
/* implicit strict */ /* implicit strict */
/*{ body }*/ /*{ body }*/
callCount = callCount + 1; callCount++;
} }
}; };

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/statements/function/ path: language/statements/function/forbidden-ext/b2/func-decl-
name: function declaration name: function declaration
esid: sec-definitions-runtime-semantics-instantiatefunctionobject esid: sec-definitions-runtime-semantics-instantiatefunctionobject
info: | info: |
@ -13,7 +13,7 @@ var callCount = 0;
function f(/*{ params }*/) { function f(/*{ params }*/) {
"use strict"; "use strict";
/*{ body }*/ /*{ body }*/
callCount = callCount + 1; callCount++;
} }
assert.throws(/*{ error }*/, function() { assert.throws(/*{ error }*/, function() {
f(/*{ args }*/); f(/*{ args }*/);

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/function/ path: language/expressions/function/forbidden-ext/b2/func-expr-
name: function expression name: function expression
esid: sec-definitions-runtime-semantics-evaluation esid: sec-definitions-runtime-semantics-evaluation
info: | info: |
@ -13,7 +13,7 @@ var f;
f = function(/*{ params }*/) { f = function(/*{ params }*/) {
"use strict"; "use strict";
/*{ body }*/ /*{ body }*/
callCount = callCount + 1; callCount++;
}; };
assert.throws(/*{ error }*/, function() { assert.throws(/*{ error }*/, function() {
f(/*{ args }*/); f(/*{ args }*/);

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/statements/generators/ path: language/statements/generators/forbidden-ext/b2/gen-func-decl-
name: generator function declaration name: generator function declaration
esid: sec-generator-definitions-runtime-semantics-instantiatefunctionobject esid: sec-generator-definitions-runtime-semantics-instantiatefunctionobject
info: | info: |
@ -13,7 +13,7 @@ var callCount = 0;
function* f(/*{ params }*/) { function* f(/*{ params }*/) {
"use strict"; "use strict";
/*{ body }*/ /*{ body }*/
callCount = callCount + 1; callCount++;
} }
assert.throws(/*{ error }*/, function() { assert.throws(/*{ error }*/, function() {

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/generators/ path: language/expressions/generators/forbidden-ext/b2/gen-func-expr-
name: generator function expression name: generator function expression
esid: sec-generator-definitions-runtime-semantics-evaluation esid: sec-generator-definitions-runtime-semantics-evaluation
info: | info: |
@ -14,7 +14,7 @@ var f;
f = function*(/*{ params }*/) { f = function*(/*{ params }*/) {
"use strict"; "use strict";
/*{ body }*/ /*{ body }*/
callCount = callCount + 1; callCount++;
}; };
assert.throws(/*{ error }*/, function() { assert.throws(/*{ error }*/, function() {

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/object/method-definition/gen-meth- path: language/expressions/object/method-definition/forbidden-ext/b2/gen-meth-
name: generator method name: generator method
esid: sec-generator-definitions-runtime-semantics-propertydefinitionevaluation esid: sec-generator-definitions-runtime-semantics-propertydefinitionevaluation
info: | info: |
@ -16,7 +16,7 @@ var obj = {
*method(/*{ params }*/) { *method(/*{ params }*/) {
"use strict"; "use strict";
/*{ body }*/ /*{ body }*/
callCount = callCount + 1; callCount++;
} }
}; };

View File

@ -1,7 +1,7 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/object/method-definition/meth- path: language/expressions/object/method-definition/forbidden-ext/b2/meth-
name: method name: method
esid: sec-runtime-semantics-definemethod esid: sec-runtime-semantics-definemethod
info: | info: |
@ -13,7 +13,7 @@ var obj = {
method(/*{ params }*/) { method(/*{ params }*/) {
"use strict"; "use strict";
/*{ body }*/ /*{ body }*/
callCount = callCount + 1; callCount++;
} }
}; };