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

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

Issue 2781303002: [ES6 modules] Introduce ScriptModuleHash (Closed)
Patch Set: rebased Created 3 years, 8 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 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() {}

Powered by Google App Engine
This is Rietveld 408576698