Debian Codegraph @

js/src/jit-test/tests/ion/substr-non-movable.js

raw
1 // |jit-test| --fast-warmup; --ion-offthread-compile=off
2
3 function f(from, expected) {
4 for (let i = 0; i < 100; ++i) {
5 assertEq("abcdefgh".slice(from), expected);
6 }
7 }
8 f(1, "bcdefgh");
9 f(-1, "h");