Bug 1135428: Fix test to run with --no-asmjs as well on a CLOSED TREE; r=bustage
authorBenjamin Bouvier <benj@benj.me>
Fri, 20 Mar 2015 16:55:06 +0100
changeset 263615 4113f4e7e3e3ee8f9dd079001f44dc9c9f72630f
parent 263614 0f7f9fc972cf8f1b33ea6b9bded9b9329762fe33
child 263616 acf6c6ddfbb106917701758efbf260a6f18dc411
push id4718
push userraliiev@mozilla.com
push dateMon, 11 May 2015 18:39:53 +0000
treeherdermozilla-beta@c20c4ef55f08 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs1135428
milestone39.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1135428: Fix test to run with --no-asmjs as well on a CLOSED TREE; r=bustage
js/src/jit-test/tests/asm.js/testBug893519.js
--- a/js/src/jit-test/tests/asm.js/testBug893519.js
+++ b/js/src/jit-test/tests/asm.js/testBug893519.js
@@ -1,5 +1,11 @@
 // |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);
 assertEq(h()()(), 42);