diff --git a/js/src/ion/AsmJS.cpp b/js/src/ion/AsmJS.cpp index 1f720585d68..1f0f1299cc3 100644 --- a/js/src/ion/AsmJS.cpp +++ b/js/src/ion/AsmJS.cpp @@ -5529,7 +5529,8 @@ js::IsAsmJSCompilationAvailable(JSContext *cx, unsigned argc, Value *vp) #ifdef JS_ASMJS bool available = JSC::MacroAssembler().supportsFloatingPoint() && - !cx->compartment->debugMode(); + !cx->compartment->debugMode() && + cx->hasOption(JSOPTION_ASMJS); #else bool available = false; #endif