New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.
Starred by 14 users
Status: Fixed
Last visit > 30 days ago
Closed: Dec 2016
HW: ----
NextAction: ----
OS: ----
Priority: 2
Type: Bug

Sign in to add a comment
Use a common way to bypass JSGlobalProxy
Project Member Reported by, Nov 12 2009 Back to list
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.

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

Comment 2 by, Apr 29 2015
Status: Assigned
Comment 3 Deleted
Comment 4 Deleted
Comment 5 Deleted
Comment 6 by, Dec 27 2016
Status: Fixed
PrototypeIterator solved this.
Labels: Priority-2
Sign in to add a comment