| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 3a825ec78f08da38d22ea065a7b4f6ead7e205d1..32c2b17fa5708f9952d546fac9290fdd79088b39 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -4596,6 +4596,12 @@ void JSReceiver::LocalLookup(
|
|
|
| JSObject* js_object = JSObject::cast(this);
|
|
|
| + // Check __proto__ before interceptor.
|
| + if (name->Equals(heap->Proto_symbol()) && !IsJSContextExtensionObject()) {
|
| + result->ConstantResult(js_object);
|
| + return;
|
| + }
|
| +
|
| // Check for lookup interceptor except when bootstrapping.
|
| if (js_object->HasNamedInterceptor() &&
|
| !heap->isolate()->bootstrapper()->IsActive()) {
|
|
|