Chromium Code Reviews| Index: third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp |
| diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp |
| index 3642e50d29e06bf845e1c80fa82a44cdbdc378f8..3671efee99616f54bb0fb691a91918ae6d11b9f9 100644 |
| --- a/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp |
| +++ b/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp |
| @@ -9,7 +9,10 @@ |
| namespace blink { |
| ScriptModule::ScriptModule(v8::Isolate* isolate, v8::Local<v8::Module> module) |
| - : m_module(SharedPersistent<v8::Module>::create(module, isolate)) {} |
| + : m_module(SharedPersistent<v8::Module>::create(module, isolate)) { |
| + if (!module.IsEmpty()) |
|
haraken
2017/04/04 05:26:06
Is it possible that m_module is empty? Then compil
kouhei (in TOK)
2017/04/04 05:54:32
Addressed in https://codereview.chromium.org/27985
|
| + m_identityHash = static_cast<unsigned>(module->GetIdentityHash()); |
| +} |
| ScriptModule::~ScriptModule() {} |