| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 7355cd61c57f20a3ac0801e83ab288a66d7e3ef3..402f22055c64919ad060ec28b333cfad311aa55e 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -3163,10 +3163,9 @@ static i::Context* GetCreationContext(i::JSObject* object) {
|
| 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);
|
|
|