File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -240,7 +240,9 @@ void JSCExecutor::initOnJSVMThread() throw(JSException) {
240240 JSClassRef globalClass = nullptr ;
241241 {
242242 SystraceSection s (" JSClassCreate" );
243- globalClass = JSC_JSClassCreate (useCustomJSC, &kJSClassDefinitionEmpty );
243+ JSClassDefinition definition = kJSClassDefinitionEmpty ;
244+ definition.attributes |= kJSClassAttributeNoAutomaticPrototype ;
245+ globalClass = JSC_JSClassCreate (useCustomJSC, &definition);
244246 }
245247 {
246248 SystraceSection s (" JSGlobalContextCreateInGroup" );
Original file line number Diff line number Diff line change @@ -30,7 +30,8 @@ JSValueRef functionCaller(
3030}
3131
3232JSClassRef createFuncClass (JSContextRef ctx) {
33- auto definition = kJSClassDefinitionEmpty ;
33+ JSClassDefinition definition = kJSClassDefinitionEmpty ;
34+ definition.attributes |= kJSClassAttributeNoAutomaticPrototype ;
3435 // Need to duplicate the two different finalizer blocks, since there's no way
3536 // for it to capture this static information.
3637 if (isCustomJSCPtr (ctx)) {
@@ -107,7 +108,7 @@ void installGlobalProxy(
107108 const char * name,
108109 JSObjectGetPropertyCallback callback) {
109110 JSClassDefinition proxyClassDefintion = kJSClassDefinitionEmpty ;
110- proxyClassDefintion.className = " _FBProxyClass " ;
111+ proxyClassDefintion.attributes |= kJSClassAttributeNoAutomaticPrototype ;
111112 proxyClassDefintion.getProperty = callback;
112113
113114 const bool isCustomJSC = isCustomJSCPtr (ctx);
You can’t perform that action at this time.
0 commit comments