Closed Bug 451935 Opened 16 years ago Closed 16 years ago

a['0'] does not equate to a[0] for dense arrays?!

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 451906
mozilla1.9.1

People

(Reporter: brendan, Unassigned)

Details

From Steven Roussey's comment in http://ejohn.org/blog/tracemonkey/:

var s=[1,2,3]
console.log(s['1'])

Sorry if this is a dup. Must fix!

/be
Oops, I didn't quote Steve's results. From my own TM shell, no JIT:

js> var s=[1,2,3]
js> s['0']
js> 

undefined is the wrong answer, of course.

/be
(In reply to comment #0)

> Sorry if this is a dup.

Steve filed bug 451906.

Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.