mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-19 10:53:11 +09:00
No issue - reformat GlobalObject::skipDeselectedConstructor
This commit is contained in:
parent
2db0386e65
commit
7d2b83fafc
1 changed files with 5 additions and 6 deletions
|
|
@ -93,21 +93,20 @@ js::GlobalObject::getTypedObjectModule() const {
|
|||
/* static */ bool
|
||||
GlobalObject::skipDeselectedConstructor(JSContext* cx, JSProtoKey key)
|
||||
{
|
||||
if (key == JSProto_WebAssembly)
|
||||
// Return true if the given constructor has been disabled at run-time.
|
||||
switch (key) {
|
||||
case JSProto_WebAssembly:
|
||||
return !wasm::HasSupport(cx);
|
||||
|
||||
#ifdef ENABLE_SHARED_ARRAY_BUFFER
|
||||
// Return true if the given constructor has been disabled at run-time.
|
||||
switch (key) {
|
||||
case JSProto_Atomics:
|
||||
case JSProto_SharedArrayBuffer:
|
||||
return !cx->compartment()->creationOptions().getSharedMemoryAndAtomicsEnabled();
|
||||
#endif
|
||||
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
/* static */ bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue