1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:47:35 +00:00

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

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");