blob: 122f1501a70975bc606cdf36f1e99c9fcad697d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
load("test-common.js");
try {
assert(Array.length === 1);
assert(Array.prototype.length === 0);
assert(typeof Array() === "object");
assert(typeof new Array() === "object");
x = new Array(5);
assert(x.length === 5);
console.log("PASS");
} catch (e) {
console.log("FAIL: " + e.message);
}
|