Skip to content
Snippets Groups Projects
Commit 64f219b6 authored by Rick Waldron's avatar Rick Waldron
Browse files

Features: run feature detector to verify newly added feature flags

parent c6d7d66d
Branches
No related tags found
No related merge requests found
...@@ -21,7 +21,7 @@ info: | ...@@ -21,7 +21,7 @@ info: |
... ...
3. If func is either undefined or null, return undefined. 3. If func is either undefined or null, return undefined.
... ...
features: [Proxy, Reflect, Reflect.construct, new.target] features: [new.target, Proxy, Reflect, Reflect.construct]
---*/ ---*/
var calls = 0; var calls = 0;
......
...@@ -10,7 +10,7 @@ info: | ...@@ -10,7 +10,7 @@ info: |
7. If trap is undefined, then 7. If trap is undefined, then
b. Return Construct(target, argumentsList, newTarget). b. Return Construct(target, argumentsList, newTarget).
features: [Proxy, Reflect, Reflect.construct, new.target] features: [new.target, Proxy, Reflect, Reflect.construct]
---*/ ---*/
var calls = 0; var calls = 0;
......
...@@ -21,7 +21,7 @@ info: | ...@@ -21,7 +21,7 @@ info: |
... ...
3. If func is either undefined or null, return undefined. 3. If func is either undefined or null, return undefined.
... ...
features: [Proxy, Reflect, Reflect.construct, new.target] features: [new.target, Proxy, Reflect, Reflect.construct]
---*/ ---*/
var calls = 0; var calls = 0;
......
...@@ -14,7 +14,7 @@ description: > ...@@ -14,7 +14,7 @@ description: >
The non-normative note elaborates on the "scope" argument: The non-normative note elaborates on the "scope" argument:
An ArrowFunction does not define local bindings for arguments, super, this, or new.target. Any reference to arguments, super, or this within an ArrowFunction must resolve to a binding in a lexically enclosing environment. Typically this will be the Function Environment of an immediately enclosing function. Even though an ArrowFunction may contain references to super, the function object created in step 4 is not made into a method by performing MakeMethod. An ArrowFunction that references super is always contained within a non-ArrowFunction and the necessary state to implement super is accessible via the scope that is captured by the function object of the ArrowFunction. An ArrowFunction does not define local bindings for arguments, super, this, or new.target. Any reference to arguments, super, or this within an ArrowFunction must resolve to a binding in a lexically enclosing environment. Typically this will be the Function Environment of an immediately enclosing function. Even though an ArrowFunction may contain references to super, the function object created in step 4 is not made into a method by performing MakeMethod. An ArrowFunction that references super is always contained within a non-ArrowFunction and the necessary state to implement super is accessible via the scope that is captured by the function object of the ArrowFunction.
features: [new.target] features: [arrow-function, new.target]
---*/ ---*/
function F() { function F() {
......
...@@ -14,7 +14,7 @@ description: > ...@@ -14,7 +14,7 @@ description: >
The non-normative note elaborates on the "scope" argument: The non-normative note elaborates on the "scope" argument:
An ArrowFunction does not define local bindings for arguments, super, this, or new.target. Any reference to arguments, super, or this within an ArrowFunction must resolve to a binding in a lexically enclosing environment. Typically this will be the Function Environment of an immediately enclosing function. Even though an ArrowFunction may contain references to super, the function object created in step 4 is not made into a method by performing MakeMethod. An ArrowFunction that references super is always contained within a non-ArrowFunction and the necessary state to implement super is accessible via the scope that is captured by the function object of the ArrowFunction. An ArrowFunction does not define local bindings for arguments, super, this, or new.target. Any reference to arguments, super, or this within an ArrowFunction must resolve to a binding in a lexically enclosing environment. Typically this will be the Function Environment of an immediately enclosing function. Even though an ArrowFunction may contain references to super, the function object created in step 4 is not made into a method by performing MakeMethod. An ArrowFunction that references super is always contained within a non-ArrowFunction and the necessary state to implement super is accessible via the scope that is captured by the function object of the ArrowFunction.
features: [new.target] features: [arrow-function, new.target]
---*/ ---*/
var functionInvocationCount = 0; var functionInvocationCount = 0;
......
...@@ -7,7 +7,7 @@ description: Value when invoked via `Reflect.apply` ...@@ -7,7 +7,7 @@ description: Value when invoked via `Reflect.apply`
info: | info: |
[...] [...]
5. Return ? Call(target, thisArgument, args). 5. Return ? Call(target, thisArgument, args).
features: [Reflect, new.target] features: [new.target, Reflect]
---*/ ---*/
var newTarget = null; var newTarget = null;
......
...@@ -9,7 +9,7 @@ info: | ...@@ -9,7 +9,7 @@ info: |
2. If newTarget is not present, let newTarget be target. 2. If newTarget is not present, let newTarget be target.
[...] [...]
5. Return ? Construct(target, args, newTarget). 5. Return ? Construct(target, args, newTarget).
features: [Reflect, new.target] features: [new.target, Reflect, Reflect.construct]
---*/ ---*/
var customNewTarget = function() {}; var customNewTarget = function() {};
......
...@@ -9,7 +9,7 @@ info: | ...@@ -9,7 +9,7 @@ info: |
[...] [...]
4. Return ? EvaluateCall(tagRef, TemplateLiteral, tailCall). 4. Return ? EvaluateCall(tagRef, TemplateLiteral, tailCall).
features: [template, new.target] features: [new.target, template]
---*/ ---*/
var newTarget = null; var newTarget = null;
......
...@@ -8,7 +8,7 @@ info: | ...@@ -8,7 +8,7 @@ info: |
[...] [...]
6. Let result be ? Construct(func, argList, newTarget). 6. Let result be ? Construct(func, argList, newTarget).
[...] [...]
features: [class, Reflect, new.target] features: [class, new.target, Reflect, Reflect.construct]
---*/ ---*/
var expectedNewTarget = function() {}; var expectedNewTarget = function() {};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment