Use NoAutomaticPrototype everywhere

Reviewed By: michalgr

Differential Revision: D4462794

fbshipit-source-id: 53585741c1d35ca31e3429f2de56455ea5dea902
This commit is contained in:
Pieter De Baets authored and Facebook Github Bot committed 2017-01-25 11:43:30 -08:00
1 parent 517abba6bb
commit e97ffc469c
2 files changed
+6 -3

No files matched your search

+3 -1
View File
@@ -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");