Debian Codegraph @

js/src/jit-test/tests/ion/recover-string-from-charcode.js

raw
1 // |jit-test| --fast-warmup; --ion-offthread-compile=off
2
3 function foo(n, trigger) {
4 let result = String.fromCharCode(n * -1);
5 if (trigger) {
6 assertEq(result, "\0");
7 }
8 }
9
10 for (var i = 0; i < 100; i++) {
11 foo(-50, false);
12 }
13 foo(0, true);