LibJS: Check length property of Array.prototype.join in its test

I assume this was copied from the Array.prototype.push() test :^)
This commit is contained in:
Linus Groh 2020-04-15 11:14:35 +01:00 committed by Andreas Kling
parent 64f5185bae
commit a8406aa117
Notes: sideshowbarker 2024-07-19 07:35:12 +09:00

View File

@ -1,7 +1,7 @@
load("test-common.js");
try {
assert(Array.prototype.push.length === 1);
assert(Array.prototype.join.length === 1);
assert(["hello", "friends"].join() === "hello,friends");
assert(["hello", "friends"].join(" ") === "hello friends");