mirror of https://github.com/tc39/test262.git
Fixup: remove duplicate tests
This commit is contained in:
parent
7f518f7d38
commit
5c753769e6
|
@ -1,26 +0,0 @@
|
|||
/*---
|
||||
description: Syntax error if `arguments` used in class field (arrow function expression)
|
||||
esid: sec-class-definitions-static-semantics-early-errors
|
||||
features: [class, class-fields-public, arrow-function]
|
||||
flags: [generated]
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
info: |
|
||||
Static Semantics: Early Errors
|
||||
FieldDefinition:
|
||||
PropertyNameInitializeropt
|
||||
- It is a Syntax Error if ContainsArguments of Initializer 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.
|
||||
---*/
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
var C = class {
|
||||
x = () => {
|
||||
var t = () => { arguments; };
|
||||
t();
|
||||
}
|
||||
}
|
|
@ -1,33 +0,0 @@
|
|||
/*---
|
||||
description: error if `arguments` in StatementList of eval (direct eval)
|
||||
esid: sec-performeval-rules-in-initializer
|
||||
features: [class, class-fields-public, arrow-function]
|
||||
flags: [generated]
|
||||
info: |
|
||||
Static Semantics: Early Errors
|
||||
|
||||
FieldDefinition:
|
||||
PropertyNameInitializeropt
|
||||
|
||||
- It is a Syntax Error if ContainsArguments of Initializer 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 = () => {
|
||||
var t = () => { eval("arguments"); };
|
||||
t();
|
||||
}
|
||||
}
|
||||
|
||||
assert.throws(SyntaxError, function() {
|
||||
var c = new C();
|
||||
c.x();
|
||||
});
|
|
@ -1,30 +0,0 @@
|
|||
/*---
|
||||
description: error if `arguments` in StatementList of eval (direct eval)
|
||||
esid: sec-performeval-rules-in-initializer
|
||||
features: [class, class-fields-public, arrow-function]
|
||||
flags: [generated]
|
||||
info: |
|
||||
Static Semantics: Early Errors
|
||||
|
||||
FieldDefinition:
|
||||
PropertyNameInitializeropt
|
||||
|
||||
- It is a Syntax Error if ContainsArguments of Initializer 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 = eval("() => arguments");
|
||||
}
|
||||
|
||||
assert.throws(SyntaxError, function() {
|
||||
var c = new C();
|
||||
c.x();
|
||||
});
|
|
@ -1,16 +0,0 @@
|
|||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
description: >
|
||||
HTML-like comments are not available in module code
|
||||
(SingleLineHTMLCloseComment)
|
||||
esid: sec-html-like-comments
|
||||
es6id: B1.3
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
flags: [module]
|
||||
---*/
|
||||
|
||||
-->
|
||||
function f(){}
|
|
@ -1,15 +0,0 @@
|
|||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
description: >
|
||||
HTML-like comments are not available in module code
|
||||
(SingleLineHTMLCloseComment)
|
||||
esid: sec-html-like-comments
|
||||
es6id: B1.3
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
flags: [module]
|
||||
---*/
|
||||
-->
|
||||
function f(){}
|
|
@ -1,26 +0,0 @@
|
|||
/*---
|
||||
description: Syntax error if `arguments` used in class field (arrow function expression)
|
||||
esid: sec-class-definitions-static-semantics-early-errors
|
||||
features: [class, class-fields-public, arrow-function]
|
||||
flags: [generated]
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
info: |
|
||||
Static Semantics: Early Errors
|
||||
FieldDefinition:
|
||||
PropertyNameInitializeropt
|
||||
- It is a Syntax Error if ContainsArguments of Initializer 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.
|
||||
---*/
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
class C {
|
||||
x = () => {
|
||||
var t = () => { arguments; };
|
||||
t();
|
||||
}
|
||||
}
|
|
@ -1,34 +0,0 @@
|
|||
/*---
|
||||
description: error if `arguments` in StatementList of eval (direct eval)
|
||||
esid: sec-performeval-rules-in-initializer
|
||||
features: [class, class-fields-public, arrow-function]
|
||||
flags: [generated]
|
||||
info: |
|
||||
Static Semantics: Early Errors
|
||||
|
||||
FieldDefinition:
|
||||
PropertyNameInitializeropt
|
||||
|
||||
- It is a Syntax Error if ContainsArguments of Initializer 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 = () => {
|
||||
var t = () => { eval("arguments"); };
|
||||
t();
|
||||
}
|
||||
}
|
||||
|
||||
assert.throws(SyntaxError, function() {
|
||||
var c = new C();
|
||||
c.x();
|
||||
});
|
|
@ -1,30 +0,0 @@
|
|||
/*---
|
||||
description: error if `arguments` in StatementList of eval (direct eval)
|
||||
esid: sec-performeval-rules-in-initializer
|
||||
features: [class, class-fields-public, arrow-function]
|
||||
flags: [generated]
|
||||
info: |
|
||||
Static Semantics: Early Errors
|
||||
|
||||
FieldDefinition:
|
||||
PropertyNameInitializeropt
|
||||
|
||||
- It is a Syntax Error if ContainsArguments of Initializer 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 = eval("() => arguments");
|
||||
}
|
||||
|
||||
assert.throws(SyntaxError, function() {
|
||||
var c = new C();
|
||||
c.x();
|
||||
});
|
Loading…
Reference in New Issue