mirror of https://github.com/tc39/test262.git
Features: run feature detector to verify newly added feature flags
This commit is contained in:
parent
c6d7d66dfa
commit
64f219b666
|
@ -21,7 +21,7 @@ info: |
|
|||
...
|
||||
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;
|
||||
|
|
|
@ -10,7 +10,7 @@ info: |
|
|||
|
||||
7. If trap is undefined, then
|
||||
b. Return Construct(target, argumentsList, newTarget).
|
||||
features: [Proxy, Reflect, Reflect.construct, new.target]
|
||||
features: [new.target, Proxy, Reflect, Reflect.construct]
|
||||
---*/
|
||||
|
||||
var calls = 0;
|
||||
|
|
|
@ -21,7 +21,7 @@ info: |
|
|||
...
|
||||
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;
|
||||
|
|
|
@ -14,7 +14,7 @@ description: >
|
|||
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.
|
||||
features: [new.target]
|
||||
features: [arrow-function, new.target]
|
||||
---*/
|
||||
|
||||
function F() {
|
||||
|
|
|
@ -14,7 +14,7 @@ description: >
|
|||
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.
|
||||
features: [new.target]
|
||||
features: [arrow-function, new.target]
|
||||
---*/
|
||||
|
||||
var functionInvocationCount = 0;
|
||||
|
|
|
@ -7,7 +7,7 @@ description: Value when invoked via `Reflect.apply`
|
|||
info: |
|
||||
[...]
|
||||
5. Return ? Call(target, thisArgument, args).
|
||||
features: [Reflect, new.target]
|
||||
features: [new.target, Reflect]
|
||||
---*/
|
||||
|
||||
var newTarget = null;
|
||||
|
|
|
@ -9,7 +9,7 @@ info: |
|
|||
2. If newTarget is not present, let newTarget be target.
|
||||
[...]
|
||||
5. Return ? Construct(target, args, newTarget).
|
||||
features: [Reflect, new.target]
|
||||
features: [new.target, Reflect, Reflect.construct]
|
||||
---*/
|
||||
|
||||
var customNewTarget = function() {};
|
||||
|
|
|
@ -9,7 +9,7 @@ info: |
|
|||
|
||||
[...]
|
||||
4. Return ? EvaluateCall(tagRef, TemplateLiteral, tailCall).
|
||||
features: [template, new.target]
|
||||
features: [new.target, template]
|
||||
---*/
|
||||
|
||||
var newTarget = null;
|
||||
|
|
|
@ -8,7 +8,7 @@ info: |
|
|||
[...]
|
||||
6. Let result be ? Construct(func, argList, newTarget).
|
||||
[...]
|
||||
features: [class, Reflect, new.target]
|
||||
features: [class, new.target, Reflect, Reflect.construct]
|
||||
---*/
|
||||
|
||||
var expectedNewTarget = function() {};
|
||||
|
|
Loading…
Reference in New Issue