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

LibJS: Fix linked specification of String.prototype.concat

This commit is contained in:
Timothy Flynn 2021-07-05 13:17:03 -04:00 committed by Linus Groh
parent b583726deb
commit 4985d3ef42

View file

@ -409,7 +409,7 @@ JS_DEFINE_NATIVE_FUNCTION(StringPrototype::trim_end)
return js_string(vm, Utf8View(*string).trim(whitespace_characters, TrimMode::Right).as_string());
}
// 22.1.3.23 String.prototype.substring ( start, end ), https://tc39.es/ecma262/#sec-string.prototype.substring
// 22.1.3.4 String.prototype.concat ( ...args ), https://tc39.es/ecma262/#sec-string.prototype.concat
JS_DEFINE_NATIVE_FUNCTION(StringPrototype::concat)
{
auto string = ak_string_from(vm, global_object);