diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/jit-test/tests/ion/bug1246552.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/ion/bug1246552.js b/js/src/jit-test/tests/ion/bug1246552.js new file mode 100644 index 0000000000..3a4aa7c8b0 --- /dev/null +++ b/js/src/jit-test/tests/ion/bug1246552.js @@ -0,0 +1,11 @@ + +var t = 0; +var y = []; +y.toString = (function() { t += 1 }); +function test() { + for (var i = 0; i < 14; i++) { + String.prototype.sup.call(y); + } +} +test(); +assertEq(t, 14); |