blob: e069cdc80c920d81290b5457088620c902b66105 [file] [log] [blame]
description(
"This tests that array construction via a host call works."
);
function constructArray(arrayConstructor) {
return new arrayConstructor(100);
}
for (var i = 0; i < 3; ++i) {
var array = constructArray(Array);
shouldBeTrue("array instanceof Array");
shouldBe("array.length", "100");
}