Closed Bug 274035 Opened 20 years ago Closed 20 years ago

Three Array.prototype methods have wrong length

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
trivial

Tracking

()

VERIFIED FIXED

People

(Reporter: jerfa, Unassigned)

References

()

Details

Attachments

(2 files)

concat, slice and splice do not have the length specified by ECMA 262.

See the URL:
Expected output: 1,2,2
Actual output: 0,0,1
Attached patch update the tableSplinter Review
This patch was modeled after the one for bug 145779, it is not tested at all
because I don't have a compiler installed.
Attachment #168400 - Flags: review?(brendan)
Comment on attachment 168400 [details] [diff] [review]
update the table

Thanks, I'll check this in.

/be
Attachment #168400 - Flags: review?(brendan) → review+
Fixed, thanks again Erik!

/be
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Erik, with your permission this will be added to the javascript test library.
js1_5/Regress/regress-274035.js checked in.
Flags: testcase+
js1_5/Regress/regress-274035.js is timing out in the browser in opt and dbg builds on linux for 1.8.0 and 1.8 since at least 2006-04-05.
Filed bug 338765 on the timeouts.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: