blob: 6096f2685ff946b7a64e66fcb4a48b5522d661c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
load(libdir + "asm.js");
var bigScript = `
function wee() { return 42 }
function asmModule() { 'use asm'; function f() { return 43 } return f}
` + ' '.repeat(10 * 1024 * 1024);
eval(bigScript);
if (isAsmJSCompilationAvailable())
assertEq(isAsmJSModule(asmModule), true);
assertEq(wee(), 42);
assertEq(eval('(' + wee.toString() + ')')(), 42);
|