Index: src/handles-inl.h |
diff --git a/src/handles-inl.h b/src/handles-inl.h |
index 34b3f32d960415bd93dd3cbe1c8f5d9178ba8399..b24d134ab81ea1cb5c3ec677ca38316d79308787 100644 |
--- a/src/handles-inl.h |
+++ b/src/handles-inl.h |
@@ -138,6 +138,7 @@ template <typename T> |
T** HandleScope::CreateHandle(Isolate* isolate, T* value) { |
DCHECK(AllowHandleAllocation::IsAllowed()); |
HandleScopeData* current = isolate->handle_scope_data(); |
+ DCHECK(current->level > 0); |
internal::Object** cur = current->next; |
if (cur == current->limit) cur = Extend(isolate); |