| Index: src/objects-debug.cc
|
| diff --git a/src/objects-debug.cc b/src/objects-debug.cc
|
| index 36a21351c16a71040474b1383ce41a90d278d173..aba55ecd75cd03f3412cc8237038a4d48f8cce43 100644
|
| --- a/src/objects-debug.cc
|
| +++ b/src/objects-debug.cc
|
| @@ -687,11 +687,14 @@ void JSBoundFunction::JSBoundFunctionVerify() {
|
| VerifyObjectField(kBoundThisOffset);
|
| VerifyObjectField(kBoundTargetFunctionOffset);
|
| VerifyObjectField(kBoundArgumentsOffset);
|
| - CHECK(bound_target_function()->IsCallable());
|
| CHECK(IsCallable());
|
| - CHECK_EQ(IsConstructor(), bound_target_function()->IsConstructor());
|
| -}
|
|
|
| + Isolate* const isolate = GetIsolate();
|
| + if (!raw_bound_target_function()->IsUndefined(isolate)) {
|
| + CHECK(bound_target_function()->IsCallable());
|
| + CHECK_EQ(IsConstructor(), bound_target_function()->IsConstructor());
|
| + }
|
| +}
|
|
|
| void JSFunction::JSFunctionVerify() {
|
| CHECK(IsJSFunction());
|
|
|