Bug 29214 - getPropertyNames caching is invalid when the prototype chain contains objects with custom getPropertyNames
Summary: getPropertyNames caching is invalid when the prototype chain contains objects...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-11 17:14 PDT by Oliver Hunt
Modified: 2009-09-11 21:53 PDT (History)
0 users

See Also:


Attachments
Patch v1 (14.43 KB, patch)
2009-09-11 18:31 PDT, Oliver Hunt
sam: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Hunt 2009-09-11 17:14:37 PDT
a={};
a.__proto__=[];
for(i in a)
   print(i);
a.__proto__[0]=1;
for(i in a)
   print(i); // should print 0 but doesn't get hit
Comment 1 Oliver Hunt 2009-09-11 18:31:35 PDT
Created attachment 39499 [details]
Patch v1
Comment 2 Oliver Hunt 2009-09-11 21:53:17 PDT
Committed r48331