|
1 load(libdir + "asm.js"); |
|
2 |
|
3 assertAsmDirectiveFail("'use asm'"); |
|
4 assertAsmDirectiveFail("eval('\"use asm\";');"); |
|
5 assertAsmDirectiveFail("{ eval('\"use asm\";'); }"); |
|
6 assertAsmDirectiveFail("if (Math) { 'use asm'; }"); |
|
7 assertAsmDirectiveFail("function f(){ { 'use asm'; } }"); |
|
8 assertAsmDirectiveFail("function f(){ ; 'use asm'; } }"); |
|
9 assertAsmDirectiveFail("function f(){ 1; 'use asm'; } }"); |
|
10 assertAsmDirectiveFail("function f(){ var x; 'use asm'; } }"); |
|
11 assertAsmDirectiveFail("function f(){ if (Math) { 'use asm'; } }"); |
|
12 assertAsmDirectiveFail("(function(){ eval('\"use asm\";') })()"); |
|
13 assertAsmDirectiveFail("new Function('{\"use asm\";}')"); |
|
14 assertAsmDirectiveFail("new Function('if (Math){\"use asm\";}')"); |