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 af36c3de58677f35ce528c4b78a050673fd9b618..fdd619dbc1a29322bef059c1c5afaca72d344cd9 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp |
@@ -11,7 +11,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)), |
+ m_identityHash(static_cast<unsigned>(module->GetIdentityHash())) { |
+ DCHECK(!m_module->isEmpty()); |
+} |
ScriptModule::~ScriptModule() {} |