зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1241767 - avoid default-only switch to placate MSVC. r=bbouvier
--HG-- extra : rebase_source : 1fdd34673328fed761f8554be5dc551d597399a4 extra : amend_source : 4185a5973e979f15fbb3da2b51b64f1dabb01033
This commit is contained in:
Родитель
22b767c6eb
Коммит
6aacf42950
|
@ -93,16 +93,18 @@ js::GlobalObject::getTypedObjectModule() const {
|
|||
/* static */ bool
|
||||
GlobalObject::skipDeselectedConstructor(JSContext* cx, JSProtoKey key)
|
||||
{
|
||||
#ifdef ENABLE_SHARED_ARRAY_BUFFER
|
||||
// Return true if the given constructor has been disabled at run-time.
|
||||
switch (key) {
|
||||
#ifdef ENABLE_SHARED_ARRAY_BUFFER
|
||||
case JSProto_Atomics:
|
||||
case JSProto_SharedArrayBuffer:
|
||||
return !cx->compartment()->creationOptions().getSharedMemoryAndAtomicsEnabled();
|
||||
#endif
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
/* static */ bool
|
||||
|
|
Загрузка…
Ссылка в новой задаче