Skip to content
Snippets Groups Projects
Commit 2d4ac25f authored by Thomas Wood's avatar Thomas Wood
Browse files

Add feature flags for `new.target`

Additionally removed the `arrow-function` feature for
test/language/eval-code/direct/new.target-fn.js as it is not testing
arrow-functions, but they are mentioned in the preamble.
parent d1ad8e8f
No related branches found
No related tags found
No related merge requests found
Showing
with 14 additions and 4 deletions
......@@ -11,7 +11,7 @@ info: |
[...]
6. Let result be ? Construct(func, argList, newTarget).
[...]
features: [class]
features: [class, new.target]
---*/
var newTarget = null;
......
......@@ -9,7 +9,7 @@ info: |
[...]
4. Return ? EvaluateCall(tagRef, TemplateLiteral, tailCall).
features: [template]
features: [template, new.target]
---*/
var newTarget = null;
......
......@@ -22,6 +22,7 @@ info: |
negative:
phase: parse
type: ReferenceError
features: [new.target]
---*/
throw "Test262: This statement should not be evaluated.";
......
......@@ -22,6 +22,7 @@ info: |
negative:
phase: parse
type: ReferenceError
features: [new.target]
---*/
throw "Test262: This statement should not be evaluated.";
......
......@@ -22,6 +22,7 @@ info: |
negative:
phase: parse
type: ReferenceError
features: [new.target]
---*/
throw "Test262: This statement should not be evaluated.";
......
......@@ -22,6 +22,7 @@ info: |
negative:
phase: parse
type: ReferenceError
features: [new.target]
---*/
throw "Test262: This statement should not be evaluated.";
......
......@@ -22,6 +22,7 @@ info: |
negative:
phase: parse
type: ReferenceError
features: [new.target]
---*/
throw "Test262: This statement should not be evaluated.";
......
......@@ -22,6 +22,7 @@ info: |
negative:
phase: parse
type: ReferenceError
features: [new.target]
---*/
throw "Test262: This statement should not be evaluated.";
......
......@@ -22,6 +22,7 @@ info: |
negative:
phase: parse
type: ReferenceError
features: [new.target]
---*/
throw "Test262: This statement should not be evaluated.";
......
......@@ -22,6 +22,7 @@ info: |
negative:
phase: parse
type: ReferenceError
features: [new.target]
---*/
throw "Test262: This statement should not be evaluated.";
......
......@@ -8,7 +8,7 @@ info: |
[...]
6. Let result be ? Construct(func, argList, newTarget).
[...]
features: [class, Reflect]
features: [class, Reflect, new.target]
---*/
var expectedNewTarget = function() {};
......
......@@ -24,7 +24,7 @@ info: |
NOTE Normally, Contains does not look inside most function forms. However,
Contains is used to detect new.target, this, and super usage within an
ArrowFunction.
features: [arrow-function]
features: [arrow-function, new.target]
negative:
phase: parse
type: SyntaxError
......
......@@ -12,6 +12,7 @@ info: |
negative:
phase: parse
type: SyntaxError
features: [new.target]
---*/
throw "Test262: This statement should not be evaluated.";
......
......@@ -8,6 +8,7 @@ flags: [module]
negative:
phase: parse
type: SyntaxError
features: [new.target]
---*/
throw "Test262: This statement should not be evaluated.";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment