From 63cbc5cc983410bb329fc51efa6eaa2ffca01df8 Mon Sep 17 00:00:00 2001 From: Petr Sumbera Date: Tue, 11 Oct 2016 10:56:04 -0700 Subject: [PATCH] Bug 1309246 - avoids bug909997.js test failure on systems with JS_CODEGEN_NONE set. r=nbp --- js/src/jit-test/tests/ion/bug909997.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/js/src/jit-test/tests/ion/bug909997.js b/js/src/jit-test/tests/ion/bug909997.js index 32c822a29b2c..91d5c69bb3c2 100644 --- a/js/src/jit-test/tests/ion/bug909997.js +++ b/js/src/jit-test/tests/ion/bug909997.js @@ -1,3 +1,10 @@ +// getJitCompilerOptions will always return array with zeros when JIT is +// disabled. Therefore we quit now. +if (inJit() == 'Baseline is disabled.') { + print("JIT is disabled."); + quit(); +} + var wait = 100; var method_A = function() {