Add support of array initialization like [1,,,'4']
This commit is contained in:
1 parent
9d129e15dc
commit
6561c3fe6c
3 files changed
+23
-1
No files matched your search
@@ -71,3 +71,9 @@ assert(Array.prototype.length === 0);
|
||||
Array.prototype[0] = 'string value';
|
||||
assert(Array.prototype.length === 1);
|
||||
assert(Array.prototype[0] === 'string value');
|
||||
|
||||
var c = [0,,,'3'];
|
||||
assert (c[0] === 0);
|
||||
assert (c[1] === undefined);
|
||||
assert (c[2] === undefined);
|
||||
assert (c[3] === '3');
|
||||
Reference in new issue
Block a user