should throw a RangeError when an array's length is set to >= 4294967296

RESOLVED FIXED

Status

Rhino
Core
RESOLVED FIXED
8 years ago
8 years ago

People

(Reporter: rspeyer, Unassigned)

Tracking

(Blocks: 1 bug)

Details

Attachments

(1 attachment)

(Reporter)

Description

8 years ago
User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.4 Safari/532.5
Build Identifier: Rhino 1.7 release 2 2009 03 22

Currently throws an internal error, but should throw a RangeError

Reproducible: Always

Steps to Reproduce:
[].length = 4294967296
(Reporter)

Updated

8 years ago
Blocks: 489326
(Reporter)

Comment 1

8 years ago
Created attachment 414455 [details] [diff] [review]
throws a RangeError when an array's length is set to >= 4294967296

Comment 2

8 years ago
Checking in src/org/mozilla/javascript/NativeArray.java;
/cvsroot/mozilla/js/rhino/src/org/mozilla/javascript/NativeArray.java,v  <--  NativeArray.java
new revision: 1.108; previous revision: 1.107
done
Status: UNCONFIRMED → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.