Index: src/api.cc |
=================================================================== |
--- src/api.cc (revision 8931) |
+++ src/api.cc (working copy) |
@@ -3163,10 +3163,9 @@ |
i::Object* constructor = object->map()->constructor(); |
i::JSFunction* function; |
if (!constructor->IsJSFunction()) { |
- // API functions have null as a constructor, |
+ // Functions have null as a constructor, |
// but any JSFunction knows its context immediately. |
- ASSERT(object->IsJSFunction() && |
- i::JSFunction::cast(object)->shared()->IsApiFunction()); |
+ ASSERT(object->IsJSFunction()); |
function = i::JSFunction::cast(object); |
} else { |
function = i::JSFunction::cast(constructor); |