Issue #1996 - Implement at() method on built-in indexables.

Resolves #1996
This commit is contained in:
Moonchild 2022-08-29 21:52:04 +00:00 committed by roytam1
commit 59cf6bd808
6 changed files with 112 additions and 1 deletions

View file

@ -3189,6 +3189,9 @@ static const JSFunctionSpec array_methods[] = {
JS_SELF_HOSTED_FN("flat", "ArrayFlat", 0,0),
JS_SELF_HOSTED_FN("flatMap", "ArrayFlatMap", 1,0),
/* ES2022 additions */
JS_SELF_HOSTED_FN("at", "ArrayAt", 1,0),
JS_FS_END
};