Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 234a2118bdd7002189906df3e21f6446869f594e..bc52fa858feedd970e686368cae17f47eb445e0c 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -2426,8 +2426,8 @@ bool Genesis::ConfigureGlobalObjects( |
bool Genesis::ConfigureApiObject(Handle<JSObject> object, |
Handle<ObjectTemplateInfo> object_template) { |
ASSERT(!object_template.is_null()); |
- ASSERT(object->IsInstanceOf( |
- FunctionTemplateInfo::cast(object_template->constructor()))); |
+ ASSERT(FunctionTemplateInfo::cast(object_template->constructor()) |
+ ->IsTemplateFor(object->map()));; |
bool pending_exception = false; |
Handle<JSObject> obj = |