Serenity Operating System
at hosted 14 lines 299 B view raw
1try { 2 assert(Array.length === 1); 3 assert(Array.prototype.length === 0); 4 assert(typeof Array() === "object"); 5 assert(typeof new Array() === "object"); 6 7 x = new Array(5); 8 9 assert(x.length === 5); 10 11 console.log("PASS"); 12} catch (e) { 13 console.log("FAIL: " + e.message); 14}