summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/incremental-AccessorShape-barrier.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/gc/incremental-AccessorShape-barrier.js')
-rw-r--r--js/src/jit-test/tests/gc/incremental-AccessorShape-barrier.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/gc/incremental-AccessorShape-barrier.js b/js/src/jit-test/tests/gc/incremental-AccessorShape-barrier.js
new file mode 100644
index 000000000..0055e2c51
--- /dev/null
+++ b/js/src/jit-test/tests/gc/incremental-AccessorShape-barrier.js
@@ -0,0 +1,18 @@
+gczeal(0);
+gc();
+
+var o = {};
+function foo() {
+ var i = 0;
+ startgc(0);
+ Object.defineProperty(o, 'foo', {configurable: true, get: function g() { return i; },
+ set: function s() { return i; }});
+ Object.defineProperty(o, 'foo', {configurable: true, get: function g() { return i; },
+ set: function s() { return i; }});
+ Object.defineProperty(o, 'foo', {configurable: true, get: function g() { return i; },
+ set: function s() { return i; }});
+ Object.defineProperty(o, 'foo', {configurable: true, get: function g() { return i; },
+ set: function s() { return i; }});
+ abortgc();
+}
+foo();