Skip to content
Snippets Groups Projects
Commit 0b36f270 authored by Rick Waldron's avatar Rick Waldron Committed by Leo Balter
Browse files

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

parent 20d49776
No related branches found
No related tags found
No related merge requests found
Showing
with 17 additions and 3 deletions
...@@ -102,7 +102,6 @@ DataView.prototype.getInt8 ...@@ -102,7 +102,6 @@ DataView.prototype.getInt8
DataView.prototype.getUint16 DataView.prototype.getUint16
DataView.prototype.getUint32 DataView.prototype.getUint32
DataView.prototype.setUint8 DataView.prototype.setUint8
default-arg
default-parameters default-parameters
destructuring-assignment destructuring-assignment
destructuring-binding destructuring-binding
......
...@@ -12,6 +12,7 @@ info: | ...@@ -12,6 +12,7 @@ info: |
1. Let valid be RequireObjectCoercible(value). 1. Let valid be RequireObjectCoercible(value).
2. ReturnIfAbrupt(valid). 2. ReturnIfAbrupt(valid).
features: [destructuring-binding]
---*/ ---*/
function fn({}) {} function fn({}) {}
......
...@@ -12,6 +12,7 @@ info: | ...@@ -12,6 +12,7 @@ info: |
1. Let valid be RequireObjectCoercible(value). 1. Let valid be RequireObjectCoercible(value).
2. ReturnIfAbrupt(valid). 2. ReturnIfAbrupt(valid).
features: [destructuring-binding]
---*/ ---*/
function fn({}) {} function fn({}) {}
......
...@@ -18,6 +18,7 @@ info: | ...@@ -18,6 +18,7 @@ info: |
1. Return NormalCompletion(empty). 1. Return NormalCompletion(empty).
features: [destructuring-binding]
---*/ ---*/
function fn({}) { return true; } function fn({}) { return true; }
......
...@@ -23,6 +23,7 @@ info: | ...@@ -23,6 +23,7 @@ info: |
BindingElement[Yield ] : BindingElement[Yield ] :
SingleNameBinding[?Yield] SingleNameBinding[?Yield]
BindingPattern[?Yield] Initializer[In, ?Yield]opt BindingPattern[?Yield] Initializer[In, ?Yield]opt
features: [destructuring-binding]
---*/ ---*/
function fn1([a, b = 42]) {} function fn1([a, b = 42]) {}
......
...@@ -23,6 +23,7 @@ info: | ...@@ -23,6 +23,7 @@ info: |
BindingElement[Yield ] : BindingElement[Yield ] :
SingleNameBinding[?Yield] SingleNameBinding[?Yield]
BindingPattern[?Yield] Initializer[In, ?Yield]opt BindingPattern[?Yield] Initializer[In, ?Yield]opt
features: [destructuring-binding]
---*/ ---*/
function fn1([{}]) {} function fn1([{}]) {}
......
...@@ -23,6 +23,7 @@ info: | ...@@ -23,6 +23,7 @@ info: |
BindingElement[Yield ] : BindingElement[Yield ] :
SingleNameBinding[?Yield] SingleNameBinding[?Yield]
BindingPattern[?Yield] Initializer[In, ?Yield]opt BindingPattern[?Yield] Initializer[In, ?Yield]opt
features: [destructuring-binding]
---*/ ---*/
function fn1([a, b]) {} function fn1([a, b]) {}
......
...@@ -12,6 +12,7 @@ info: | ...@@ -12,6 +12,7 @@ info: |
[ Elisionopt BindingRestElement[?Yield]opt ] [ Elisionopt BindingRestElement[?Yield]opt ]
[ BindingElementList[?Yield] ] [ BindingElementList[?Yield] ]
[ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ] [ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]
features: [destructuring-binding]
---*/ ---*/
function fn1([,]) {} function fn1([,]) {}
......
...@@ -12,6 +12,7 @@ info: | ...@@ -12,6 +12,7 @@ info: |
[ Elisionopt BindingRestElement[?Yield]opt ] [ Elisionopt BindingRestElement[?Yield]opt ]
[ BindingElementList[?Yield] ] [ BindingElementList[?Yield] ]
[ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ] [ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]
features: [destructuring-binding]
---*/ ---*/
function fn([]) {} function fn([]) {}
...@@ -15,6 +15,7 @@ info: | ...@@ -15,6 +15,7 @@ info: |
BindingRestElement[Yield] : BindingRestElement[Yield] :
... BindingIdentifier[?Yield] ... BindingIdentifier[?Yield]
features: [destructuring-binding]
---*/ ---*/
function fn1([...args]) {} function fn1([...args]) {}
......
...@@ -13,6 +13,7 @@ info: | ...@@ -13,6 +13,7 @@ info: |
{ BindingPropertyList[?Yield] } { BindingPropertyList[?Yield] }
{ BindingPropertyList[?Yield] , } { BindingPropertyList[?Yield] , }
features: [destructuring-binding]
---*/ ---*/
function fn({}) {} function fn({}) {}
...@@ -28,6 +28,7 @@ info: | ...@@ -28,6 +28,7 @@ info: |
SingleNameBinding[Yield] : SingleNameBinding[Yield] :
BindingIdentifier[?Yield] Initializer[In, ?Yield]opt BindingIdentifier[?Yield] Initializer[In, ?Yield]opt
features: [destructuring-binding]
---*/ ---*/
// BindingElement w/ SingleNameBinding // BindingElement w/ SingleNameBinding
......
...@@ -13,6 +13,7 @@ info: | ...@@ -13,6 +13,7 @@ info: |
{ BindingPropertyList[?Yield] } { BindingPropertyList[?Yield] }
{ BindingPropertyList[?Yield] , } { BindingPropertyList[?Yield] , }
features: [destructuring-binding]
---*/ ---*/
function fn1({x,}) {} function fn1({x,}) {}
......
...@@ -24,6 +24,7 @@ info: | ...@@ -24,6 +24,7 @@ info: |
SingleNameBinding[Yield] : SingleNameBinding[Yield] :
BindingIdentifier[?Yield] Initializer[In, ?Yield]opt BindingIdentifier[?Yield] Initializer[In, ?Yield]opt
features: [destructuring-binding]
---*/ ---*/
function fna({x}) {} function fna({x}) {}
......
...@@ -17,6 +17,7 @@ info: | ...@@ -17,6 +17,7 @@ info: |
BindingProperty[?Yield] BindingProperty[?Yield]
BindingPropertyList[?Yield] , BindingProperty[?Yield] BindingPropertyList[?Yield] , BindingProperty[?Yield]
features: [destructuring-binding]
---*/ ---*/
function fn1({a: {p: q}, b: {r}, c: {s = 0}, d: {}}) {} function fn1({a: {p: q}, b: {r}, c: {s = 0}, d: {}}) {}
......
...@@ -11,6 +11,7 @@ info: | ...@@ -11,6 +11,7 @@ info: |
BindingPattern[Yield] : BindingPattern[Yield] :
ObjectBindingPattern[?Yield] ObjectBindingPattern[?Yield]
ArrayBindingPattern[?Yield] ArrayBindingPattern[?Yield]
features: [destructuring-binding]
---*/ ---*/
function fn1([{}]) {} function fn1([{}]) {}
......
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
/*--- /*---
info: | info: |
GeneratorMethod can reference SuperProperty in arg GeneratorMethod can reference SuperProperty in default parameters
es6id: 14.4.1 es6id: 14.4.1
author: Sam Mikes author: Sam Mikes
description: GeneratorMethod uses SuperProperty (allowed) description: GeneratorMethod uses SuperProperty (allowed)
features: [ default-arg, generators, super ] features: [ default-parameters, generators, super ]
---*/ ---*/
var obj = { var obj = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment