Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 60bf5d4e85bd408352667e3ed24cfe1aa762a587..5c700547df2239fd7bbae4bd7ebce853d54bffd9 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -1051,12 +1051,6 @@ MaybeHandle<Object> JSProxy::GetProperty(Isolate* isolate, |
Handle<Object> receiver, |
bool* was_found) { |
*was_found = true; |
- if (receiver->IsJSGlobalObject()) { |
- THROW_NEW_ERROR( |
- isolate, |
- NewTypeError(MessageTemplate::kReadGlobalReferenceThroughProxy, name), |
- Object); |
- } |
DCHECK(!name->IsPrivate()); |
STACK_CHECK(isolate, MaybeHandle<Object>()); |