Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 8c05ff8bdd3e07349b54771eed2d323b41614d74..b67a77321724eae38a512fdd583f240aa5d936f4 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -1077,12 +1077,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), |
Toon Verwaest
2017/02/08 16:47:51
What about removing the message too?
|
- Object); |
- } |
DCHECK(!name->IsPrivate()); |
STACK_CHECK(isolate, MaybeHandle<Object>()); |