Closed
Bug 254375
Opened 20 years ago
Closed 20 years ago
Object.toSource fails for negative number properties
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: timeless, Unassigned)
Details
(Keywords: fixed-aviary1.0, fixed1.7.5)
Attachments
(2 files)
1.18 KB,
patch
|
mkaply
:
approval-aviary+
mkaply
:
approval1.7.5+
|
Details | Diff | Splinter Review |
2.27 KB,
text/plain
|
Details |
js> eval(uneval({'-1':true})) typein:187: SyntaxError: invalid property id: typein:187: ({-1:true}) typein:187: ..^ js> build() built on Aug 2 2004 at 20:00:51
Comment 1•20 years ago
|
||
Yes, that's not a valid literal. Why not quote integers all the time? It looks like doubles are already set up that way.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 2•20 years ago
|
||
Always quoting bloats the runtime with atomized strings, instead of int immediate operands in the bytecode stream that save space. This patch quotes only negative integer property ids. /be
Comment 3•20 years ago
|
||
Fixed, fiat review. Timeless, please nominate for branches if you care. /be
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Attachment #155250 -
Flags: approval1.7.3?
Comment 4•20 years ago
|
||
Comment on attachment 155250 [details] [diff] [review] fix a=mkaply for 1.7.3 and aviary if you want it.
Attachment #155250 -
Flags: approval1.7.3?
Attachment #155250 -
Flags: approval1.7.3+
Attachment #155250 -
Flags: approval-aviary+
Comment on attachment 155250 [details] [diff] [review] fix mozilla/js/src/jsobj.c 3.155.2.3
Keywords: fixed1.7.3
Comment 7•19 years ago
|
||
Again, thanks to timeless.
Comment 8•19 years ago
|
||
js1_5/Regress/regress-254375.js checked in.
Updated•19 years ago
|
Flags: testcase+
You need to log in
before you can comment on or make changes to this bug.
Description
•