mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
446 B
22 lines
446 B
/*===
|
|
object 4 1,2,3,4
|
|
===*/
|
|
|
|
try {
|
|
var t1 = [ 1, 2 ];
|
|
var t2 = [ 3, 4 ];
|
|
var t3;
|
|
t2.length = 4;
|
|
|
|
// t2.length is 4, but in E5.1 Section 15.4.4.4 the result Array
|
|
// does not get updated for any trailing non-existent elements of
|
|
// t2. The result should thus have length 4, but e.g. V8 and Rhino
|
|
// will have length 6.
|
|
|
|
t3 = t1.concat(t2);
|
|
|
|
print(typeof t3, t3.length, t3);
|
|
} catch (e) {
|
|
print(e);
|
|
}
|
|
|
|
|