summaryrefslogtreecommitdiff
path: root/js/src/jsstr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jsstr.cpp')
-rw-r--r--js/src/jsstr.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/src/jsstr.cpp b/js/src/jsstr.cpp
index 6eb11b1cc1..4167d78741 100644
--- a/js/src/jsstr.cpp
+++ b/js/src/jsstr.cpp
@@ -2847,6 +2847,9 @@ static const JSFunctionSpec string_methods[] = {
/* Python-esque sequence methods. */
JS_FN("concat", str_concat, 1,0),
JS_SELF_HOSTED_FN("slice", "String_slice", 2,0),
+
+ /* ES2022 additions */
+ JS_SELF_HOSTED_FN("at", "String_at", 1,0),
/* HTML string methods. */
JS_SELF_HOSTED_FN("bold", "String_bold", 0,0),