Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: src/objects.cc

Issue 2671553006: Allow global prototype to be a Proxy (Closed)
Patch Set: update bytecode Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>());

Powered by Google App Engine
This is Rietveld 408576698