Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp

Issue 2781303002: [ES6 modules] Introduce ScriptModuleHash (Closed)
Patch Set: noempty Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..0de9985ed31c8e083ed8d72eee72763ab8808b8d 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)),
+ m_identityHash(static_cast<unsigned>(module->GetIdentityHash())) {
+ DCHECK(!m_module.isEmpty());
+}
ScriptModule::~ScriptModule() {}

Powered by Google App Engine
This is Rietveld 408576698