Project: v8 Issues People Development process History Sign in
New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.
Issue 504 Use a common way to bypass JSGlobalProxy
Starred by 14 users Project Member Reported by yu...@chromium.org, Nov 12 2009 Back to list
Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Dec 2016
Cc:
HW: ----
OS: ----
Priority: 2
Type: Bug



Sign in to add a comment
There are several places in the code where a methods receiver's prototype 
is used to perform an action when the receiver is s JSGlobalProxy. Would be 
nice to use something like JSObject::BypassGlobalProxy in those cases to 
get rid of duplicated code.

Example:
  if (IsJSGlobalProxy()) {
    Object* proto = GetPrototype();
    if (proto->IsNull()) return result->NotFound();
    ASSERT(proto->IsJSGlobalObject());
    return JSObject::cast(proto)->LocalLookup(name, result);
  }



 
Cc: verwa...@chromium.org
Comment 2 by habl...@google.com, Apr 29 2015
Status: Assigned
Comment 3 Deleted
Comment 4 Deleted
Comment 5 Deleted
Comment 6 by adamk@chromium.org, Dec 27 2016
Status: Fixed
PrototypeIterator solved this.
Labels: Priority-2
Sign in to add a comment