Bug 1135428: Fix test to run with --no-asmjs as well on a CLOSED TREE; r=bustage

This commit is contained in:
Benjamin Bouvier 2015-03-20 16:55:06 +01:00
parent 28a5828a95
commit 44e4c91635

View File

@ -1,4 +1,10 @@
// |jit-test| error:Error
if (!isAsmJSCompilationAvailable()) {
throw new Error('this test expects an error to be thrown, here it is');
quit();
}
var g = newGlobal();
evaluate("function h() { function f() { 'use asm'; function g() { return 42 } return g } return f }", { compileAndGo:false, global:g});
var h = clone(g.h);