Skip to content

Commit 7e1b6ad

Browse files
boingoingpleath
authored andcommitted
1 parent 9c540f2 commit 7e1b6ad

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/Runtime/Library/EngineInterfaceObject.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ namespace Js
169169
// CommonNativeInterfaces is used as a prototype for the other native interface objects
170170
// to share the common APIs without requiring everyone to access EngineInterfaceObject.Common.
171171
this->commonNativeInterfaces = DynamicObject::New(recycler,
172-
DynamicType::New(scriptContext, TypeIds_Object, library->GetObjectPrototype(), nullptr,
172+
DynamicType::New(scriptContext, TypeIds_Object, library->GetNull(), nullptr,
173173
DeferredTypeHandler<InitializeCommonNativeInterfaces>::GetDefaultInstance()));
174174
library->AddMember(this, Js::PropertyIds::Common, this->commonNativeInterfaces);
175175

lib/Runtime/Library/JavascriptLibrary.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1363,7 +1363,7 @@ namespace Js
13631363

13641364
#if defined(ENABLE_INTL_OBJECT) || defined(ENABLE_JS_BUILTINS) || defined(ENABLE_PROJECTION)
13651365
engineInterfaceObject = EngineInterfaceObject::New(recycler,
1366-
DynamicType::New(scriptContext, TypeIds_EngineInterfaceObject, objectPrototype, nullptr,
1366+
DynamicType::New(scriptContext, TypeIds_EngineInterfaceObject, nullValue, nullptr,
13671367
DeferredTypeHandler<InitializeEngineInterfaceObject>::GetDefaultInstance()));
13681368

13691369
#ifdef ENABLE_INTL_OBJECT
@@ -1373,8 +1373,8 @@ namespace Js
13731373

13741374
#ifdef ENABLE_JS_BUILTINS
13751375
chakraLibraryObject = DynamicObject::New(recycler,
1376-
DynamicType::New(scriptContext, TypeIds_Object, objectPrototype, nullptr,
1377-
DeferredTypeHandler<InitializeChakraLibraryObject>::GetDefaultInstance()));
1376+
DynamicType::New(scriptContext, TypeIds_Object, nullValue, nullptr,
1377+
DeferredTypeHandler<InitializeChakraLibraryObject>::GetDefaultInstance()));
13781378
if (CONFIG_FLAG(LdChakraLib)) {
13791379
AddMember(globalObject, PropertyIds::__chakraLibrary, chakraLibraryObject);
13801380
}

0 commit comments

Comments
 (0)