mirror of https://github.com/tc39/test262.git
Adding destructuring-binding on feature list
This commit is contained in:
parent
b8e92c2341
commit
b9f43c0711
|
@ -12,7 +12,7 @@ info: |
|
|||
{AssignmentPropertyList[?Yield, ?Await]}
|
||||
{AssignmentPropertyList[?Yield, ?Await],AssignmentRestProperty[?Yield, ?Await]opt}
|
||||
template: syntax/invalid
|
||||
features: [class-fields-private]
|
||||
features: [class-fields-private, destructuring-binding]
|
||||
---*/
|
||||
|
||||
//- elements
|
||||
|
@ -20,5 +20,4 @@ features: [class-fields-private]
|
|||
|
||||
destructureX() {
|
||||
const { #x: x } = this;
|
||||
return x;
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
description: Acessing private field from object destructuring pattern is not a valid syntax (class expression)
|
||||
esid: prod-ClassElement
|
||||
features: [class-fields-private, class]
|
||||
features: [class-fields-private, destructuring-binding, class]
|
||||
flags: [generated]
|
||||
negative:
|
||||
phase: parse
|
||||
|
@ -28,6 +28,5 @@ var C = class {
|
|||
|
||||
destructureX() {
|
||||
const { #x: x } = this;
|
||||
return x;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
description: Acessing private field from object destructuring pattern is not a valid syntax (class declaration)
|
||||
esid: prod-ClassElement
|
||||
features: [class-fields-private, class]
|
||||
features: [class-fields-private, destructuring-binding, class]
|
||||
flags: [generated]
|
||||
negative:
|
||||
phase: parse
|
||||
|
@ -28,6 +28,5 @@ class C {
|
|||
|
||||
destructureX() {
|
||||
const { #x: x } = this;
|
||||
return x;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue