summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_6/Proxy/regress-bug1037770.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/ecma_6/Proxy/regress-bug1037770.js')
-rw-r--r--js/src/tests/ecma_6/Proxy/regress-bug1037770.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/src/tests/ecma_6/Proxy/regress-bug1037770.js b/js/src/tests/ecma_6/Proxy/regress-bug1037770.js
new file mode 100644
index 000000000..240b04f32
--- /dev/null
+++ b/js/src/tests/ecma_6/Proxy/regress-bug1037770.js
@@ -0,0 +1,7 @@
+foo = 1;
+Object.defineProperty(this, "foo", {writable:false, configurable:true});
+foo = 2;
+assertEq(foo, 1);
+
+if (typeof reportCompare === "function")
+ reportCompare(true, true);