mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 17:58:18 +03: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:
parent
64f5185bae
commit
a8406aa117
Notes:
sideshowbarker
2024-07-19 07:35:12 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/a8406aa1178 Pull-request: https://github.com/SerenityOS/serenity/pull/1806
@ -1,7 +1,7 @@
|
|||||||
load("test-common.js");
|
load("test-common.js");
|
||||||
|
|
||||||
try {
|
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");
|
||||||
assert(["hello", "friends"].join(" ") === "hello friends");
|
assert(["hello", "friends"].join(" ") === "hello friends");
|
||||||
|
Loading…
Reference in New Issue
Block a user