Closed
Bug 67279
Opened 24 years ago
Closed 24 years ago
[timeless] nothing is more empty than null :-) <pinkerton> i am
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
VERIFIED
INVALID
People
(Reporter: timeless, Assigned: rogerl)
References
()
Details
that's a quote, and here's the math for it:
javascript:([,].length<[,null].length)
The behavior of [,,,] is inconsistent among browsers.
javascript:[,].length
nc4.76 : 1
moz/xpcshell : 1
ie5.5 : 2
opera : 0
the logics are:
opera5.0: 0 [,] there's nothing there, so there's no length
moz/nc47: 1 [,] the last item does not exist.
msie5.5: 2 [,] each item exists and affects ++length
xpcsh js> [[,].length,[,null].length,[null,].length]
1,2,1
opera javascript:[[,].length,[,null].length,[null,].length]
0,2,2
ie5.5 javascript:[[,].length,[,null].length,[null,].length]
2,2,2
nc4.7 javascript:[[,].length,[,null].length,[null,].length]
1,2,1
I haven't read the spec or tested nn2/nn3. It's quite possible that we are
right and that they are wrong, but i'd like that conclusion here in this bug so
I can point to it.
Comment 1•24 years ago
|
||
Read the damn spec: http://www.mozilla.org/js/language/E262-3.pdf. See 11.1.4,
pay attention to the production ArrayInitialiser : [ ElementList , ElisionOpt ]
and its semantics, then go file bugs on Opera and IE, for crying out loud.
/be
*** Bug 219308 has been marked as a duplicate of this bug. ***
fwiw opera7.02/7.20 results in 1,2,1
so that's one browser fixed
Comment 6•20 years ago
|
||
*** Bug 284064 has been marked as a duplicate of this bug. ***
You need to log in
before you can comment on or make changes to this bug.
Description
•