Index: third_party/WebKit/Source/core/dom/PendingScript.cpp |
diff --git a/third_party/WebKit/Source/core/dom/PendingScript.cpp b/third_party/WebKit/Source/core/dom/PendingScript.cpp |
index 246e3260e2ac618e8c70291106713f6d9169b5f1..f23b31e3a9bb011c0a39d9ebe0bb93cf4b0c1c29 100644 |
--- a/third_party/WebKit/Source/core/dom/PendingScript.cpp |
+++ b/third_party/WebKit/Source/core/dom/PendingScript.cpp |
@@ -47,11 +47,12 @@ PendingScript::PendingScript(Element* element, ScriptResource* resource) |
, m_client(nullptr) |
{ |
setScriptResource(resource); |
- ThreadState::current()->registerPreFinalizer(this); |
} |
PendingScript::~PendingScript() |
{ |
+ // Verify explicit dispose(). |
+ CHECK(!m_client && !m_element && !m_streamer); |
} |
void PendingScript::dispose() |