test(node): get test-assert.js working (#15698)

Co-authored-by: Don Isaac <don@bun.sh>
Co-authored-by: DonIsaac <DonIsaac@users.noreply.github.com>
This commit is contained in:
Don Isaac
2025-01-09 18:45:43 -06:00
committed by GitHub
parent 7bcd825d13
commit 0372ca5c0a
30 changed files with 4588 additions and 1304 deletions

View File

@@ -351,10 +351,10 @@ WTF::String ERR_INVALID_ARG_TYPE(JSC::ThrowScope& scope, JSC::JSGlobalObject* gl
} else {
for (unsigned i = 0; i < length - 1; i++) {
JSValue expected_type = expected_types.at(i);
if (i > 0) result.append(", "_s);
result.append(expected_type.toWTFString(globalObject));
result.append(", "_s);
}
result.append("or "_s);
result.append(" or "_s);
result.append(expected_types.at(length - 1).toWTFString(globalObject));
}