Details
-
Bug
-
Resolution: Fixed
-
P2
-
8
-
b119
-
generic
-
generic
-
Verified
Description
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