nboyd%atg.com 8a58a243f9 Fix bug 434041: NaN added to an object when optimization is used
git-svn-id: svn://10.0.0.236/trunk@255683 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-01 22:02:53 +00:00

11 lines
277 B
Plaintext

// Regression test for bug https://bugzilla.mozilla.org/show_bug.cgi?id=434041
js> function add(_object, _key, _value) {
> _object[_key] = _value;
> }
js> var o = {};
js> add(o, 'a', 'b');
js> o.toSource();
({a:"b"})
js> add(o, 3, 'c');
js> o.toSource();
({a:"b", 3:"c"})