Summary: | Object.create creates uncachable objects | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Oliver Hunt <oliver> | ||||||
Component: | New Bugs | Assignee: | Oliver Hunt <oliver> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | abarth, eric, ggaren, webkit.review.bot | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Other | ||||||||
OS: | OS X 10.5 | ||||||||
Bug Depends on: | 59173 | ||||||||
Bug Blocks: | |||||||||
Attachments: |
|
Description
Oliver Hunt
2011-04-21 18:05:18 PDT
Created attachment 90645 [details]
Patch
Comment on attachment 90645 [details]
Patch
r=me
Committed r84583: <http://trac.webkit.org/changeset/84583> http://trac.webkit.org/changeset/84583 might have broken Qt Linux Release The following tests are not passing: fast/js/Object-create.html Broke a test: http://build.webkit.org/results/GTK%20Linux%2064-bit%20Debug/r84585%20(21737)/fast/js/Object-create-pretty-diff.html FAIL Object.getPrototypeOf(Object.create(null)) should be null. Was [object Object]. You changed to unconditionally use an empty object prototype, even if null is passed in. BTW, I think the right way to fix this is to give JSGlobalObject (or maybe JSGlobalData) a nullPrototypeStructure, just like the emptyObjectStructure. That way, Object.create will be correct for null prototypes, and still efficient. Created attachment 90757 [details]
Patch
Comment on attachment 90757 [details]
Patch
r=me
http://trac.webkit.org/changeset/84679 might have broken GTK Linux 64-bit Debug Committed r84679: <http://trac.webkit.org/changeset/84679> |