Source code
Revision control
Copy as Markdown
Other Tools
load(libdir + "asm.js");
assertAsmDirectiveFail("'use asm'");
assertAsmDirectiveFail("eval('\"use asm\";');");
assertAsmDirectiveFail("{ eval('\"use asm\";'); }");
assertAsmDirectiveFail("if (Math) { 'use asm'; }");
assertAsmDirectiveFail("function f(){ { 'use asm'; } }");
assertAsmDirectiveFail("function f(){ ; 'use asm'; }");
assertAsmDirectiveFail("function f(){ 1; 'use asm'; }");
assertAsmDirectiveFail("function f(){ var x; 'use asm'; }");
assertAsmDirectiveFail("function f(){ if (Math) { 'use asm'; } }");
assertAsmDirectiveFail("(function(){ eval('\"use asm\";') })()");
assertAsmDirectiveFail("new Function('{\"use asm\";}')");
assertAsmDirectiveFail("new Function('if (Math){\"use asm\";}')");