Summary: | REGRESSION prototype chain ignored iterating properties of global object | ||
---|---|---|---|
Product: | WebKit | Reporter: | Jay Freeman (saurik) <saurik> |
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW --- | ||
Severity: | Normal | CC: | eoconnor, ggaren, oliver, saurik |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | http://test.saurik.com/apple/protochain.html |
Description
Jay Freeman (saurik)
2014-06-04 19:24:58 PDT
To make certain this is clear when this bug is evaluated (due to some confusion on #133531), the behavior in my code is to use JSContextGetGlobalObject to get the global object (which I guess is now a JSProxy?), then use JSObjectGetPrototype in a loop to find the top-most prototype, and finally to use JSObjectSetPrototype on the final not-NULL result. I demonstrated the change in behavior using JavaScript in this bug, but I am actually working at the level of JavaScriptCore's API. |