summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-957114.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/gc/bug-957114.js')
-rw-r--r--js/src/jit-test/tests/gc/bug-957114.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/gc/bug-957114.js b/js/src/jit-test/tests/gc/bug-957114.js
new file mode 100644
index 0000000000..5c61c8210b
--- /dev/null
+++ b/js/src/jit-test/tests/gc/bug-957114.js
@@ -0,0 +1,13 @@
+gczeal(7,1);
+function TestCase(n) {
+ this.name = '';
+ this.description = '';
+ this.expect = '';
+ this.actual = '';
+ this.reason = '';
+ this.passed = '';
+}
+function test() { return new TestCase; }
+test();
+Object.defineProperty(Object.prototype, "name", {});
+test();