Remove erroneous test templates and generated files

This commit is contained in:
Rick Waldron 2020-10-14 13:19:59 -04:00
parent b89c3bf369
commit bab4da88e3
8 changed files with 0 additions and 214 deletions

View File

@ -1,18 +0,0 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-performeval-rules-in-initializer
path: language/statements/class/elements/arrow-body-indirect-
name: indirect eval
features: [class, class-fields-public]
---*/
class C {
x = (0, eval)('/*{ arrow-body }*/;');
}
assert.throws(/*{ executionerror }*/, function() {
new C().x();
});
assert.sameValue(executed, true);

View File

@ -1,20 +0,0 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-performeval-rules-in-initializer
path: language/statements/class/elements/arrow-body-private-indirect-
name: indirect eval
features: [class, class-fields-private]
---*/
class C {
#x = (0, eval)('/*{ arrow-body }*/;');
x() {
this.#x();
}
}
assert.throws(/*{ executionerror }*/, function() {
new C().x();
});

View File

@ -1,17 +0,0 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-performeval-rules-in-initializer
path: language/expressions/class/elements/arrow-body-indirect-
name: indirect eval
features: [class, class-fields-public]
---*/
var C = class {
x = (0, eval)('/*{ arrow-body }*/;');
}
assert.throws(/*{ executionerror }*/, function() {
new C().x();
});

View File

@ -1,20 +0,0 @@
// Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-performeval-rules-in-initializer
path: language/expressions/class/elements/arrow-body-private-indirect-
name: indirect eval
features: [class, class-fields-private]
---*/
var C = class {
#x = (0, eval)('/*{ arrow-body }*/;');
x() {
this.#x();
}
}
assert.throws(/*{ executionerror }*/, function() {
new C().x();
});

View File

@ -1,33 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/eval-err-contains-arguments.case
// - src/class-elements/initializer-eval-arguments/cls-expr-fields-indirect-eval-arrow-body.template
/*---
description: error if `arguments` in StatementList of eval (indirect eval)
esid: sec-performeval-rules-in-initializer
features: [class, class-fields-public]
flags: [generated]
info: |
Additional Early Error Rules for Eval Inside Initializer
These static semantics are applied by PerformEval when a direct eval call occurs inside a class field initializer.
ScriptBody : StatementList
It is a Syntax Error if ContainsArguments of StatementList is true.
...
Static Semantics: ContainsArguments
IdentifierReference : Identifier
1. If the StringValue of Identifier is "arguments", return true.
...
For all other grammatical productions, recurse on all nonterminals. If any piece returns true, then return true. Otherwise return false.
---*/
var C = class {
x = (0, eval)('() => arguments;');
}
assert.throws(ReferenceError, function() {
new C().x();
});

View File

@ -1,36 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/eval-err-contains-arguments.case
// - src/class-elements/initializer-eval-arguments/cls-expr-private-fields-indirect-eval-arrow-body.template
/*---
description: error if `arguments` in StatementList of eval (indirect eval)
esid: sec-performeval-rules-in-initializer
features: [class, class-fields-public, class-fields-private]
flags: [generated]
info: |
Additional Early Error Rules for Eval Inside Initializer
These static semantics are applied by PerformEval when a direct eval call occurs inside a class field initializer.
ScriptBody : StatementList
It is a Syntax Error if ContainsArguments of StatementList is true.
...
Static Semantics: ContainsArguments
IdentifierReference : Identifier
1. If the StringValue of Identifier is "arguments", return true.
...
For all other grammatical productions, recurse on all nonterminals. If any piece returns true, then return true. Otherwise return false.
---*/
var C = class {
#x = (0, eval)('() => arguments;');
x() {
this.#x();
}
}
assert.throws(ReferenceError, function() {
new C().x();
});

View File

@ -1,34 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/eval-err-contains-arguments.case
// - src/class-elements/initializer-eval-arguments/cls-decl-fields-indirect-eval-arrow-body.template
/*---
description: error if `arguments` in StatementList of eval (indirect eval)
esid: sec-performeval-rules-in-initializer
features: [class, class-fields-public]
flags: [generated]
info: |
Additional Early Error Rules for Eval Inside Initializer
These static semantics are applied by PerformEval when a direct eval call occurs inside a class field initializer.
ScriptBody : StatementList
It is a Syntax Error if ContainsArguments of StatementList is true.
...
Static Semantics: ContainsArguments
IdentifierReference : Identifier
1. If the StringValue of Identifier is "arguments", return true.
...
For all other grammatical productions, recurse on all nonterminals. If any piece returns true, then return true. Otherwise return false.
---*/
class C {
x = (0, eval)('() => arguments;');
}
assert.throws(ReferenceError, function() {
new C().x();
});
assert.sameValue(executed, true);

View File

@ -1,36 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/eval-err-contains-arguments.case
// - src/class-elements/initializer-eval-arguments/cls-decl-private-fields-indirect-eval-arrow-body.template
/*---
description: error if `arguments` in StatementList of eval (indirect eval)
esid: sec-performeval-rules-in-initializer
features: [class, class-fields-public, class-fields-private]
flags: [generated]
info: |
Additional Early Error Rules for Eval Inside Initializer
These static semantics are applied by PerformEval when a direct eval call occurs inside a class field initializer.
ScriptBody : StatementList
It is a Syntax Error if ContainsArguments of StatementList is true.
...
Static Semantics: ContainsArguments
IdentifierReference : Identifier
1. If the StringValue of Identifier is "arguments", return true.
...
For all other grammatical productions, recurse on all nonterminals. If any piece returns true, then return true. Otherwise return false.
---*/
class C {
#x = (0, eval)('() => arguments;');
x() {
this.#x();
}
}
assert.throws(ReferenceError, function() {
new C().x();
});