diff --git a/js/src/jit-test/tests/asm.js/testBug893519.js b/js/src/jit-test/tests/asm.js/testBug893519.js index 60d2bf6a363..d4301009310 100644 --- a/js/src/jit-test/tests/asm.js/testBug893519.js +++ b/js/src/jit-test/tests/asm.js/testBug893519.js @@ -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);