summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug779631.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/ion/bug779631.js')
-rw-r--r--js/src/jit-test/tests/ion/bug779631.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/ion/bug779631.js b/js/src/jit-test/tests/ion/bug779631.js
new file mode 100644
index 000000000..087aa01ac
--- /dev/null
+++ b/js/src/jit-test/tests/ion/bug779631.js
@@ -0,0 +1,9 @@
+var flag = 0;
+var a = {};
+Object.defineProperty(a, "value", {set: function(x) {}});
+a.watch("value", function(){flag++;});
+
+for(var i = 0; i < 100; i++) {
+ a.value = i;
+ assertEq(flag, i+1);
+}