Index: src/api.h |
=================================================================== |
--- src/api.h (revision 2430) |
+++ src/api.h (working copy) |
@@ -244,9 +244,10 @@ |
// Implementations of ToLocal |
-#define MAKE_TO_LOCAL(Name, From, To) \ |
+#define MAKE_TO_LOCAL(Name, From, To) \ |
Local<v8::To> Utils::Name(v8::internal::Handle<v8::internal::From> obj) { \ |
- return Local<To>(reinterpret_cast<To*>(obj.location())); \ |
+ ASSERT(!obj->IsTheHole()); \ |
+ return Local<To>(reinterpret_cast<To*>(obj.location())); \ |
} |
MAKE_TO_LOCAL(ToLocal, Context, Context) |