| Index: src/inspector/injected-script-native.cc
|
| diff --git a/src/inspector/injected-script-native.cc b/src/inspector/injected-script-native.cc
|
| index fa3cf5f9a68290391e3c423bced18bb2eb8efa64..5d0136b3b6d949de34949106305e29210e53fc4f 100644
|
| --- a/src/inspector/injected-script-native.cc
|
| +++ b/src/inspector/injected-script-native.cc
|
| @@ -44,8 +44,8 @@ int InjectedScriptNative::bind(v8::Local<v8::Value> value,
|
| const String16& groupName) {
|
| if (m_lastBoundObjectId <= 0) m_lastBoundObjectId = 1;
|
| int id = m_lastBoundObjectId++;
|
| - m_idToWrappedObject[id] = std::unique_ptr<v8::Global<v8::Value>>(
|
| - new v8::Global<v8::Value>(m_isolate, value));
|
| + m_idToWrappedObject.insert(
|
| + std::make_pair(id, v8::Global<v8::Value>(m_isolate, value)));
|
| addObjectToGroup(id, groupName);
|
| return id;
|
| }
|
| @@ -57,7 +57,7 @@ void InjectedScriptNative::unbind(int id) {
|
|
|
| v8::Local<v8::Value> InjectedScriptNative::objectForId(int id) {
|
| auto iter = m_idToWrappedObject.find(id);
|
| - return iter != m_idToWrappedObject.end() ? iter->second->Get(m_isolate)
|
| + return iter != m_idToWrappedObject.end() ? iter->second.Get(m_isolate)
|
| : v8::Local<v8::Value>();
|
| }
|
|
|
|
|