mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Use NoAutomaticPrototype everywhere
Reviewed By: michalgr Differential Revision: D4462794 fbshipit-source-id: 53585741c1d35ca31e3429f2de56455ea5dea902
This commit is contained in:
committed by
Facebook Github Bot
parent
517abba6bb
commit
e97ffc469c
@@ -240,7 +240,9 @@ void JSCExecutor::initOnJSVMThread() throw(JSException) {
|
||||
JSClassRef globalClass = nullptr;
|
||||
{
|
||||
SystraceSection s("JSClassCreate");
|
||||
globalClass = JSC_JSClassCreate(useCustomJSC, &kJSClassDefinitionEmpty);
|
||||
JSClassDefinition definition = kJSClassDefinitionEmpty;
|
||||
definition.attributes |= kJSClassAttributeNoAutomaticPrototype;
|
||||
globalClass = JSC_JSClassCreate(useCustomJSC, &definition);
|
||||
}
|
||||
{
|
||||
SystraceSection s("JSGlobalContextCreateInGroup");
|
||||
|
||||
Reference in New Issue
Block a user