summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testScriptGetter_JSOP_CALLPROP.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/basic/testScriptGetter_JSOP_CALLPROP.js')
-rw-r--r--js/src/jit-test/tests/basic/testScriptGetter_JSOP_CALLPROP.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/testScriptGetter_JSOP_CALLPROP.js b/js/src/jit-test/tests/basic/testScriptGetter_JSOP_CALLPROP.js
new file mode 100644
index 000000000..d16895e15
--- /dev/null
+++ b/js/src/jit-test/tests/basic/testScriptGetter_JSOP_CALLPROP.js
@@ -0,0 +1,9 @@
+var a = {_val: 'q',
+ get p() { return f; }};
+
+function f() { return this._val; }
+
+var g = '';
+for (var i = 0; i < 9; i++)
+ g += a.p();
+assertEq(g, 'qqqqqqqqq');