diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/jit-test/tests/cacheir/bug1414849.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/cacheir/bug1414849.js b/js/src/jit-test/tests/cacheir/bug1414849.js new file mode 100644 index 0000000000..1ebe86a82a --- /dev/null +++ b/js/src/jit-test/tests/cacheir/bug1414849.js @@ -0,0 +1,12 @@ +function g(s) { + for (var i = s; ; i--) { + if (s[i] !== ' ') + return; + } +} +function f() { + var s = "foo".match(/(.*)$/)[0]; + return g(s); +} +for (var i = 0; i < 10; i++) + f(); |