mirror of https://github.com/tc39/test262.git
Features: add missing "destructuring-binding" features; remove "default-arg" (#1521)
This commit is contained in:
parent
20d4977634
commit
0b36f27000
|
@ -102,7 +102,6 @@ DataView.prototype.getInt8
|
|||
DataView.prototype.getUint16
|
||||
DataView.prototype.getUint32
|
||||
DataView.prototype.setUint8
|
||||
default-arg
|
||||
default-parameters
|
||||
destructuring-assignment
|
||||
destructuring-binding
|
||||
|
|
|
@ -12,6 +12,7 @@ info: |
|
|||
|
||||
1. Let valid be RequireObjectCoercible(value).
|
||||
2. ReturnIfAbrupt(valid).
|
||||
features: [destructuring-binding]
|
||||
---*/
|
||||
|
||||
function fn({}) {}
|
||||
|
|
|
@ -12,6 +12,7 @@ info: |
|
|||
|
||||
1. Let valid be RequireObjectCoercible(value).
|
||||
2. ReturnIfAbrupt(valid).
|
||||
features: [destructuring-binding]
|
||||
---*/
|
||||
|
||||
function fn({}) {}
|
||||
|
|
|
@ -18,6 +18,7 @@ info: |
|
|||
|
||||
1. Return NormalCompletion(empty).
|
||||
|
||||
features: [destructuring-binding]
|
||||
---*/
|
||||
|
||||
function fn({}) { return true; }
|
||||
|
|
|
@ -23,6 +23,7 @@ info: |
|
|||
BindingElement[Yield ] :
|
||||
SingleNameBinding[?Yield]
|
||||
BindingPattern[?Yield] Initializer[In, ?Yield]opt
|
||||
features: [destructuring-binding]
|
||||
---*/
|
||||
|
||||
function fn1([a, b = 42]) {}
|
||||
|
|
|
@ -23,6 +23,7 @@ info: |
|
|||
BindingElement[Yield ] :
|
||||
SingleNameBinding[?Yield]
|
||||
BindingPattern[?Yield] Initializer[In, ?Yield]opt
|
||||
features: [destructuring-binding]
|
||||
---*/
|
||||
|
||||
function fn1([{}]) {}
|
||||
|
|
|
@ -23,6 +23,7 @@ info: |
|
|||
BindingElement[Yield ] :
|
||||
SingleNameBinding[?Yield]
|
||||
BindingPattern[?Yield] Initializer[In, ?Yield]opt
|
||||
features: [destructuring-binding]
|
||||
---*/
|
||||
|
||||
function fn1([a, b]) {}
|
||||
|
|
|
@ -12,6 +12,7 @@ info: |
|
|||
[ Elisionopt BindingRestElement[?Yield]opt ]
|
||||
[ BindingElementList[?Yield] ]
|
||||
[ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]
|
||||
features: [destructuring-binding]
|
||||
---*/
|
||||
|
||||
function fn1([,]) {}
|
||||
|
|
|
@ -12,6 +12,7 @@ info: |
|
|||
[ Elisionopt BindingRestElement[?Yield]opt ]
|
||||
[ BindingElementList[?Yield] ]
|
||||
[ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]
|
||||
features: [destructuring-binding]
|
||||
---*/
|
||||
|
||||
function fn([]) {}
|
||||
|
|
|
@ -15,6 +15,7 @@ info: |
|
|||
|
||||
BindingRestElement[Yield] :
|
||||
... BindingIdentifier[?Yield]
|
||||
features: [destructuring-binding]
|
||||
---*/
|
||||
|
||||
function fn1([...args]) {}
|
||||
|
|
|
@ -13,6 +13,7 @@ info: |
|
|||
{ BindingPropertyList[?Yield] }
|
||||
{ BindingPropertyList[?Yield] , }
|
||||
|
||||
features: [destructuring-binding]
|
||||
---*/
|
||||
|
||||
function fn({}) {}
|
||||
|
|
|
@ -28,6 +28,7 @@ info: |
|
|||
SingleNameBinding[Yield] :
|
||||
BindingIdentifier[?Yield] Initializer[In, ?Yield]opt
|
||||
|
||||
features: [destructuring-binding]
|
||||
---*/
|
||||
|
||||
// BindingElement w/ SingleNameBinding
|
||||
|
|
|
@ -13,6 +13,7 @@ info: |
|
|||
{ BindingPropertyList[?Yield] }
|
||||
{ BindingPropertyList[?Yield] , }
|
||||
|
||||
features: [destructuring-binding]
|
||||
---*/
|
||||
|
||||
function fn1({x,}) {}
|
||||
|
|
|
@ -24,6 +24,7 @@ info: |
|
|||
SingleNameBinding[Yield] :
|
||||
BindingIdentifier[?Yield] Initializer[In, ?Yield]opt
|
||||
|
||||
features: [destructuring-binding]
|
||||
---*/
|
||||
|
||||
function fna({x}) {}
|
||||
|
|
|
@ -17,6 +17,7 @@ info: |
|
|||
BindingProperty[?Yield]
|
||||
BindingPropertyList[?Yield] , BindingProperty[?Yield]
|
||||
|
||||
features: [destructuring-binding]
|
||||
---*/
|
||||
|
||||
function fn1({a: {p: q}, b: {r}, c: {s = 0}, d: {}}) {}
|
||||
|
|
|
@ -11,6 +11,7 @@ info: |
|
|||
BindingPattern[Yield] :
|
||||
ObjectBindingPattern[?Yield]
|
||||
ArrayBindingPattern[?Yield]
|
||||
features: [destructuring-binding]
|
||||
---*/
|
||||
|
||||
function fn1([{}]) {}
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
|
||||
/*---
|
||||
info: |
|
||||
GeneratorMethod can reference SuperProperty in arg
|
||||
GeneratorMethod can reference SuperProperty in default parameters
|
||||
es6id: 14.4.1
|
||||
author: Sam Mikes
|
||||
description: GeneratorMethod uses SuperProperty (allowed)
|
||||
features: [ default-arg, generators, super ]
|
||||
features: [ default-parameters, generators, super ]
|
||||
---*/
|
||||
|
||||
var obj = {
|
||||
|
|
Loading…
Reference in New Issue