| Index: src/string-stream.cc
|
| diff --git a/src/string-stream.cc b/src/string-stream.cc
|
| index 3a8ac34b3850d3c46fa292a3ac4158fc379a95be..36c05e426554320b60767dc3b76a474af7c5df94 100644
|
| --- a/src/string-stream.cc
|
| +++ b/src/string-stream.cc
|
| @@ -527,7 +527,8 @@ void StringStream::PrintPrototype(JSFunction* fun, Object* receiver) {
|
| Object* name = fun->shared()->name();
|
| bool print_name = false;
|
| Isolate* isolate = fun->GetIsolate();
|
| - if (receiver->IsNull() || receiver->IsUndefined() || receiver->IsJSProxy()) {
|
| + if (receiver->IsNull() || receiver->IsUndefined(isolate) ||
|
| + receiver->IsJSProxy()) {
|
| print_name = true;
|
| } else if (isolate->context() != nullptr) {
|
| if (!receiver->IsJSObject()) {
|
| @@ -539,7 +540,7 @@ void StringStream::PrintPrototype(JSFunction* fun, Object* receiver) {
|
| !iter.IsAtEnd(); iter.Advance()) {
|
| if (iter.GetCurrent()->IsJSProxy()) break;
|
| Object* key = iter.GetCurrent<JSObject>()->SlowReverseLookup(fun);
|
| - if (!key->IsUndefined()) {
|
| + if (!key->IsUndefined(isolate)) {
|
| if (!name->IsString() ||
|
| !key->IsString() ||
|
| !String::cast(name)->Equals(String::cast(key))) {
|
|
|