Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 39e051a50fd897d08940f4ecfa2525213ab988b0..96f20db4f30cd946579b4b5063a1715250247940 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -10364,6 +10364,7 @@ Handle<Object> Script::GetNameOrSourceURL(Handle<Script> script) { |
Handle<JSObject> Script::GetWrapper(Handle<Script> script) { |
Isolate* isolate = script->GetIsolate(); |
if (!script->wrapper()->IsUndefined()) { |
+ DCHECK(script->wrapper()->IsWeakCell()); |
Handle<WeakCell> cell(WeakCell::cast(script->wrapper())); |
if (!cell->cleared()) { |
// Return a handle for the existing script wrapper from the cache. |