Skip to content

Commit

Permalink
Features: add missing "destructuring-binding" features; remove "defau…
Browse files Browse the repository at this point in the history
…lt-arg" (#1521)
  • Loading branch information
rwaldron authored and leobalter committed Apr 24, 2018
1 parent 20d4977 commit 0b36f27
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 3 deletions.
1 change: 0 additions & 1 deletion features.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ DataView.prototype.getInt8
DataView.prototype.getUint16
DataView.prototype.getUint32
DataView.prototype.setUint8
default-arg
default-parameters
destructuring-assignment
destructuring-binding
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ info: |
1. Let valid be RequireObjectCoercible(value).
2. ReturnIfAbrupt(valid).
features: [destructuring-binding]
---*/

function fn({}) {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ info: |
1. Let valid be RequireObjectCoercible(value).
2. ReturnIfAbrupt(valid).
features: [destructuring-binding]
---*/

function fn({}) {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ info: |
1. Return NormalCompletion(empty).
features: [destructuring-binding]
---*/

function fn({}) { return true; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ info: |
BindingElement[Yield ] :
SingleNameBinding[?Yield]
BindingPattern[?Yield] Initializer[In, ?Yield]opt
features: [destructuring-binding]
---*/

function fn1([a, b = 42]) {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ info: |
BindingElement[Yield ] :
SingleNameBinding[?Yield]
BindingPattern[?Yield] Initializer[In, ?Yield]opt
features: [destructuring-binding]
---*/

function fn1([{}]) {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ info: |
BindingElement[Yield ] :
SingleNameBinding[?Yield]
BindingPattern[?Yield] Initializer[In, ?Yield]opt
features: [destructuring-binding]
---*/

function fn1([a, b]) {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ info: |
[ Elisionopt BindingRestElement[?Yield]opt ]
[ BindingElementList[?Yield] ]
[ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]
features: [destructuring-binding]
---*/

function fn1([,]) {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ info: |
[ Elisionopt BindingRestElement[?Yield]opt ]
[ BindingElementList[?Yield] ]
[ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]
features: [destructuring-binding]
---*/

function fn([]) {}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ info: |
BindingRestElement[Yield] :
... BindingIdentifier[?Yield]
features: [destructuring-binding]
---*/

function fn1([...args]) {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ info: |
{ BindingPropertyList[?Yield] }
{ BindingPropertyList[?Yield] , }
features: [destructuring-binding]
---*/

function fn({}) {}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ info: |
SingleNameBinding[Yield] :
BindingIdentifier[?Yield] Initializer[In, ?Yield]opt
features: [destructuring-binding]
---*/

// BindingElement w/ SingleNameBinding
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ info: |
{ BindingPropertyList[?Yield] }
{ BindingPropertyList[?Yield] , }
features: [destructuring-binding]
---*/

function fn1({x,}) {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ info: |
SingleNameBinding[Yield] :
BindingIdentifier[?Yield] Initializer[In, ?Yield]opt
features: [destructuring-binding]
---*/

function fna({x}) {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}}) {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ info: |
BindingPattern[Yield] :
ObjectBindingPattern[?Yield]
ArrayBindingPattern[?Yield]
features: [destructuring-binding]
---*/

function fn1([{}]) {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 0b36f27

Please sign in to comment.