Summary: | a = data[a]++; sets the wrong key in data | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Malte Ubl <malte> | ||||
Component: | JavaScriptCore | Assignee: | Gavin Barraclough <barraclough> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | ap, barraclough, brendan, fpizlo, ggaren, oliver | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Malte Ubl
2012-07-13 12:51:55 PDT
Where are you seeing this issue? I cannot reproduce in Web Inspector using Safari 5.1.7 or nightly r122160. Ha, apparently jsfiddle adds stuff that is necessary to repro. This repros for me in the console var data = {'test': 0}; (function() { var a = 'test'; a = data[a]++; })(); data in both Safari 5.x and 6.x. I don't have a webkit nightly handy. Thank you, I can reproduce now. CC'ing some JSC engineers. Created attachment 162391 [details]
Fix
|