summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_5/extensions/regress-bug567606.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/ecma_5/extensions/regress-bug567606.js')
-rw-r--r--js/src/tests/ecma_5/extensions/regress-bug567606.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/js/src/tests/ecma_5/extensions/regress-bug567606.js b/js/src/tests/ecma_5/extensions/regress-bug567606.js
new file mode 100644
index 000000000..6bebc8063
--- /dev/null
+++ b/js/src/tests/ecma_5/extensions/regress-bug567606.js
@@ -0,0 +1,19 @@
+// Any copyright is dedicated to the Public Domain.
+// http://creativecommons.org/licenses/publicdomain/
+
+var global = this;
+
+(function() {
+ function f() {
+ this.b = function() {};
+ Object.defineProperty(this, "b", ({
+ configurable: global.__defineSetter__("", function() {})
+ }));
+ }
+ for (y of [0]) {
+ _ = new f();
+ }
+})();
+uneval(this);
+
+reportCompare(true, true);