-
Bug
-
Resolution: Fixed
-
P3
-
8
-
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