summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/fields/scopes.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/non262/fields/scopes.js')
-rw-r--r--js/src/tests/non262/fields/scopes.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/js/src/tests/non262/fields/scopes.js b/js/src/tests/non262/fields/scopes.js
new file mode 100644
index 0000000000..39ff31c44a
--- /dev/null
+++ b/js/src/tests/non262/fields/scopes.js
@@ -0,0 +1,11 @@
+(function({
+ k = class i {
+ [_ => i]()
+ {}
+ }
+} = {}) {
+ var j = 0;
+})()
+
+if (typeof reportCompare === "function")
+ reportCompare(true, true);