blob: 8995c6e8754f24dbe5268da29afed0a3ac2b9dad [file] [log] [blame]
// |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 }", { global:g});
var h = clone(g.h);
assertEq(h()()(), 42);