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 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue