diff options
Diffstat (limited to 'js/src/jit-test/tests/ion/bug911369.js')
-rw-r--r-- | js/src/jit-test/tests/ion/bug911369.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/ion/bug911369.js b/js/src/jit-test/tests/ion/bug911369.js new file mode 100644 index 000000000..90240b29c --- /dev/null +++ b/js/src/jit-test/tests/ion/bug911369.js @@ -0,0 +1,14 @@ +var a = []; +var count = 0; +a.valueOf = function() { + ++count; +} +function f(a) { + 6 - a; +} + +f(3); +for (var i=0; i<10; i++) + f(a); + +assertEq(count, 10); |