[Webkit-unassigned] [Bug 91270] a = data[a]++; sets the wrong key in data

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jul 14 09:59:12 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=91270





--- Comment #2 from Malte Ubl <malteubl at google.com>  2012-07-14 09:59:11 PST ---
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.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list