Debian Codegraph @

js/src/jit-test/tests/xdr/asm.js

raw
1 load(libdir + 'bytecode-cache.js');
2
3 var test = (function () {
4 function f() {
5 var x = function inner() {
6 "use asm";
7 function g() {}
8 return g;
9 };
10 };
11 return f.toString();
12 })();
13
14 try {
15 evalWithCache(test, {});
16 } catch (x) {
17 assertEq(x.message.includes("Asm.js is not supported by XDR") ||
18 x.message.includes("Not collecting delazifications") ||
19 x.message.includes("XDR encoding failure"), true);
20 }