|
@@ -127,12 +127,12 @@ void Initialize(v8::Local<v8::Object> exports,
|
|
|
&electron::RemoteCallbackFreer::BindTo);
|
|
|
dict.SetMethod("setRemoteObjectFreer", &electron::RemoteObjectFreer::BindTo);
|
|
|
dict.SetMethod("addRemoteObjectRef", &electron::RemoteObjectFreer::AddRef);
|
|
|
+ dict.SetMethod("createIDWeakMap",
|
|
|
+ &electron::api::KeyWeakMap<int32_t>::Create);
|
|
|
dict.SetMethod(
|
|
|
"createDoubleIDWeakMap",
|
|
|
&electron::api::KeyWeakMap<std::pair<std::string, int32_t>>::Create);
|
|
|
#endif
|
|
|
- dict.SetMethod("createIDWeakMap",
|
|
|
- &electron::api::KeyWeakMap<int32_t>::Create);
|
|
|
dict.SetMethod("requestGarbageCollectionForTesting",
|
|
|
&RequestGarbageCollectionForTesting);
|
|
|
dict.SetMethod("isSameOrigin", &IsSameOrigin);
|