-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P2
-
Affects Version/s: 8
-
Component/s: core-libs
-
b119
-
generic
-
generic
-
Verified
An array with a single number element is not converted to an array index:
var array = [1, 2];
array[[0]]; // should return 1, it returns undefined
A negative int array index is not converted to an array index either:
var array = [];
array[4294967294] = 1;
array[-2]; // should return undefined, returns 1
var array = [1, 2];
array[[0]]; // should return 1, it returns undefined
A negative int array index is not converted to an array index either:
var array = [];
array[4294967294] = 1;
array[-2]; // should return undefined, returns 1