mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 858783 - Check user-controlled asm.js flag. r=luke
This commit is contained in:
parent
5db35d415f
commit
011ea7d86f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user