Bug 1563241: Make Spidermonkey's testing intrinsic wasmBulkMem dependent on shared memory too; r=lth a=beta-fix
Differential Revision:
https://phabricator.services.mozilla.com/D36774
--- a/js/src/builtin/TestingFunctions.cpp
+++ b/js/src/builtin/TestingFunctions.cpp
@@ -725,17 +725,18 @@ static bool WasmBulkMemSupported(JSConte
#ifdef ENABLE_WASM_BULKMEM_OPS
bool isSupported = true;
# ifdef ENABLE_WASM_CRANELIFT
if (cx->options().wasmCranelift()) {
isSupported = false;
}
# endif
#else
- bool isSupported = false;
+ bool isSupported =
+ cx->realm()->creationOptions().getSharedMemoryAndAtomicsEnabled();
#endif
args.rval().setBoolean(isSupported);
return true;
}
static bool WasmReftypesEnabled(JSContext* cx, unsigned argc, Value* vp) {
CallArgs args = CallArgsFromVp(argc, vp);
args.rval().setBoolean(wasm::HasReftypesSupport(cx));