-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P3
-
Affects Version/s: 8
-
Component/s: core-libs
-
None
-
b115
-
generic
-
generic
The length property of Array.prototype should behave like in an ordinary Array, i.e. it should be the value of the largest array key + 1. Currently it is not updated when inserting array keys:
jjs> Array.prototype.length
0
jjs> Array.prototype[4] = 1;
1
jjs> Array.prototype.length
0
jjs> Array.prototype.length
0
jjs> Array.prototype[4] = 1;
1
jjs> Array.prototype.length
0