diff options
Diffstat (limited to 'js/src/jit-test/tests/warp/bug1667699.js')
-rw-r--r-- | js/src/jit-test/tests/warp/bug1667699.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/warp/bug1667699.js b/js/src/jit-test/tests/warp/bug1667699.js new file mode 100644 index 0000000000..a88115c7c5 --- /dev/null +++ b/js/src/jit-test/tests/warp/bug1667699.js @@ -0,0 +1,15 @@ +// |jit-test| --fast-warmup +function f(s) { + // Trial-inline self-hosted |replace| and relazify. + for (var i = 0; i < 50; i++) { + s = s.replace("a", "b"); + } + trialInline(); + relazifyFunctions(); + + // Warp-compile. + for (var j = 0; j < 50; j++) {} + + return s; +} +assertEq(f("a"), "b"); |