Skip to content
Snippets Groups Projects
Commit b9f43c07 authored by Caio Lima's avatar Caio Lima Committed by Rick Waldron
Browse files

Adding destructuring-binding on feature list

parent b8e92c23
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ info: | ...@@ -12,7 +12,7 @@ info: |
{AssignmentPropertyList[?Yield, ?Await]} {AssignmentPropertyList[?Yield, ?Await]}
{AssignmentPropertyList[?Yield, ?Await],AssignmentRestProperty[?Yield, ?Await]opt} {AssignmentPropertyList[?Yield, ?Await],AssignmentRestProperty[?Yield, ?Await]opt}
template: syntax/invalid template: syntax/invalid
features: [class-fields-private] features: [class-fields-private, destructuring-binding]
---*/ ---*/
//- elements //- elements
...@@ -20,5 +20,4 @@ features: [class-fields-private] ...@@ -20,5 +20,4 @@ features: [class-fields-private]
destructureX() { destructureX() {
const { #x: x } = this; const { #x: x } = this;
return x;
} }
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
/*--- /*---
description: Acessing private field from object destructuring pattern is not a valid syntax (class expression) description: Acessing private field from object destructuring pattern is not a valid syntax (class expression)
esid: prod-ClassElement esid: prod-ClassElement
features: [class-fields-private, class] features: [class-fields-private, destructuring-binding, class]
flags: [generated] flags: [generated]
negative: negative:
phase: parse phase: parse
...@@ -28,6 +28,5 @@ var C = class { ...@@ -28,6 +28,5 @@ var C = class {
destructureX() { destructureX() {
const { #x: x } = this; const { #x: x } = this;
return x;
} }
}; };
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
/*--- /*---
description: Acessing private field from object destructuring pattern is not a valid syntax (class declaration) description: Acessing private field from object destructuring pattern is not a valid syntax (class declaration)
esid: prod-ClassElement esid: prod-ClassElement
features: [class-fields-private, class] features: [class-fields-private, destructuring-binding, class]
flags: [generated] flags: [generated]
negative: negative:
phase: parse phase: parse
...@@ -28,6 +28,5 @@ class C { ...@@ -28,6 +28,5 @@ class C {
destructureX() { destructureX() {
const { #x: x } = this; const { #x: x } = this;
return x;
} }
} }
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