Features: add missing "destructuring-binding" features; remove "default-arg" (#1521)

This commit is contained in:
Rick Waldron 2018-04-24 14:52:19 -04:00 committed by Leo Balter
parent 20d4977634
commit 0b36f27000
17 changed files with 17 additions and 3 deletions

View File

@ -102,7 +102,6 @@ DataView.prototype.getInt8
DataView.prototype.getUint16
DataView.prototype.getUint32
DataView.prototype.setUint8
default-arg
default-parameters
destructuring-assignment
destructuring-binding

View File

@ -12,6 +12,7 @@ info: |
1. Let valid be RequireObjectCoercible(value).
2. ReturnIfAbrupt(valid).
features: [destructuring-binding]
---*/
function fn({}) {}

View File

@ -12,6 +12,7 @@ info: |
1. Let valid be RequireObjectCoercible(value).
2. ReturnIfAbrupt(valid).
features: [destructuring-binding]
---*/
function fn({}) {}

View File

@ -18,6 +18,7 @@ info: |
1. Return NormalCompletion(empty).
features: [destructuring-binding]
---*/
function fn({}) { return true; }

View File

@ -23,6 +23,7 @@ info: |
BindingElement[Yield ] :
SingleNameBinding[?Yield]
BindingPattern[?Yield] Initializer[In, ?Yield]opt
features: [destructuring-binding]
---*/
function fn1([a, b = 42]) {}

View File

@ -23,6 +23,7 @@ info: |
BindingElement[Yield ] :
SingleNameBinding[?Yield]
BindingPattern[?Yield] Initializer[In, ?Yield]opt
features: [destructuring-binding]
---*/
function fn1([{}]) {}

View File

@ -23,6 +23,7 @@ info: |
BindingElement[Yield ] :
SingleNameBinding[?Yield]
BindingPattern[?Yield] Initializer[In, ?Yield]opt
features: [destructuring-binding]
---*/
function fn1([a, b]) {}

View File

@ -12,6 +12,7 @@ info: |
[ Elisionopt BindingRestElement[?Yield]opt ]
[ BindingElementList[?Yield] ]
[ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]
features: [destructuring-binding]
---*/
function fn1([,]) {}

View File

@ -12,6 +12,7 @@ info: |
[ Elisionopt BindingRestElement[?Yield]opt ]
[ BindingElementList[?Yield] ]
[ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]
features: [destructuring-binding]
---*/
function fn([]) {}

View File

@ -15,6 +15,7 @@ info: |
BindingRestElement[Yield] :
... BindingIdentifier[?Yield]
features: [destructuring-binding]
---*/
function fn1([...args]) {}

View File

@ -13,6 +13,7 @@ info: |
{ BindingPropertyList[?Yield] }
{ BindingPropertyList[?Yield] , }
features: [destructuring-binding]
---*/
function fn({}) {}

View File

@ -28,6 +28,7 @@ info: |
SingleNameBinding[Yield] :
BindingIdentifier[?Yield] Initializer[In, ?Yield]opt
features: [destructuring-binding]
---*/
// BindingElement w/ SingleNameBinding

View File

@ -13,6 +13,7 @@ info: |
{ BindingPropertyList[?Yield] }
{ BindingPropertyList[?Yield] , }
features: [destructuring-binding]
---*/
function fn1({x,}) {}

View File

@ -24,6 +24,7 @@ info: |
SingleNameBinding[Yield] :
BindingIdentifier[?Yield] Initializer[In, ?Yield]opt
features: [destructuring-binding]
---*/
function fna({x}) {}

View File

@ -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: {}}) {}

View File

@ -11,6 +11,7 @@ info: |
BindingPattern[Yield] :
ObjectBindingPattern[?Yield]
ArrayBindingPattern[?Yield]
features: [destructuring-binding]
---*/
function fn1([{}]) {}

View File

@ -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 = {