Closed
Bug 245148
Opened 21 years ago
Closed 21 years ago
[null].toSource() == [].toSource() : null in array is blank
Categories
(Core :: JavaScript Engine, defect, P1)
Core
JavaScript Engine
Tracking
()
VERIFIED
FIXED
mozilla1.8alpha2
People
(Reporter: bebabo, Assigned: brendan)
Details
(Keywords: fixed1.7, js1.5, Whiteboard: fixed-aviary1.0)
Attachments
(2 files)
1.46 KB,
patch
|
shaver
:
review+
jesup
:
approval1.7+
|
Details | Diff | Splinter Review |
2.19 KB,
text/plain
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040206 Firefox/0.8
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040206 Firefox/0.8
Array.toSource() represents null as 'blank' (instead of expected 'null'). This
in all versions of Firefox / Mozilla i had at hand.
Reproducible: Always
Steps to Reproduce:
1. lauch javascript console
2. type [null].toSource() in command line
Actual Results:
prints: []
Expected Results:
should print: [null]
Assignee | ||
Comment 1•21 years ago
|
||
Patch in a trice.
/be
Assignee: general → brendan
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: js1.5
Priority: -- → P1
Hardware: PC → All
Target Milestone: --- → mozilla1.8alpha1
Assignee | ||
Comment 2•21 years ago
|
||
Easy, got rid of a useless assignment too.
/be
Updated•21 years ago
|
Attachment #149862 -
Flags: review+
Assignee | ||
Comment 3•21 years ago
|
||
Fixed on trunk. Going for 1.7 approval.
/be
Status: NEW → RESOLVED
Closed: 21 years ago
Flags: blocking1.7+
Resolution: --- → FIXED
Target Milestone: mozilla1.8alpha1 → mozilla1.8alpha2
Assignee | ||
Updated•21 years ago
|
Attachment #149862 -
Flags: approval1.7?
Updated•21 years ago
|
Attachment #149862 -
Flags: approval1.7? → approval1.7+
Assignee | ||
Comment 4•21 years ago
|
||
Fixed on the 1.7 branch too.
/be
Updated•21 years ago
|
Whiteboard: needed-aviary1.0
Updated•21 years ago
|
Whiteboard: needed-aviary1.0 → fixed-aviary1.0
Comment 6•20 years ago
|
||
Thomas, with your permission this will be included in the javascript test
suite.
Comment 7•20 years ago
|
||
No reply, but since this case is so trivial, I have checked in
js/tests/js1_5/Regress/regress-245148.js anyway.
Updated•20 years ago
|
Flags: testcase+
You need to log in
before you can comment on or make changes to this bug.
Description
•