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

Unified Diff: src/global-handles.cc

Issue 265823006: Add defensive assert for having a weak, empty presistent in a (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/global-handles.cc
diff --git a/src/global-handles.cc b/src/global-handles.cc
index d6cd47918115799311e4409c9c4500083265aead..82b5f3d96b581674b29c8255b95f1cda1594b23a 100644
--- a/src/global-handles.cc
+++ b/src/global-handles.cc
@@ -207,6 +207,7 @@ class GlobalHandles::Node {
void MakeWeak(void* parameter, WeakCallback weak_callback) {
ASSERT(weak_callback != NULL);
ASSERT(state() != FREE);
+ CHECK(object_ != NULL);
set_state(WEAK);
set_parameter(parameter);
weak_callback_ = weak_callback;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698