summaryrefslogtreecommitdiff
path: root/src/class-fields/double-empty-var.case
diff options
context:
space:
mode:
Diffstat (limited to 'src/class-fields/double-empty-var.case')
-rw-r--r--src/class-fields/double-empty-var.case30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/class-fields/double-empty-var.case b/src/class-fields/double-empty-var.case
new file mode 100644
index 000000000..6da771449
--- /dev/null
+++ b/src/class-fields/double-empty-var.case
@@ -0,0 +1,30 @@
+// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+desc: Empty var, empty var
+info: |
+ 1.1 New Productions
+
+ [...]
+
+ FieldDefinitionList [Yield, Await]:
+ FieldDefinition [?Yield, ?Await]
+ FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
+template: default
+includes: [propertyHelper.js]
+---*/
+
+//- body
+ a; b;
+
+//- assertions
+ assert.sameValue(this.a, undefined);
+ verifyEnumerable(this, "a");
+ verifyWritable(this, "a");
+ verifyConfigurable(this, "a");
+
+ assert.sameValue(this.b, undefined);
+ verifyEnumerable(this, "b");
+ verifyWritable(this, "b");
+ verifyConfigurable(this, "b");