Serenity Operating System
1try {
2 function foo() { }
3 assert(foo.length === 0);
4 assert((foo.length = 5) === 5);
5 assert(foo.length === 0);
6
7 function bar(a, b, c) {}
8 assert(bar.length === 3);
9 assert((bar.length = 5) === 5);
10 assert(bar.length === 3);
11
12 console.log("PASS");
13} catch (e) {
14 console.log("FAIL: " + e);
15}