summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/00_primordials.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/00_primordials.js b/core/00_primordials.js
index d394d1294..dbbba78b7 100644
--- a/core/00_primordials.js
+++ b/core/00_primordials.js
@@ -292,6 +292,7 @@
const {
ArrayPrototypeForEach,
+ ArrayPrototypeJoin,
ArrayPrototypeMap,
FunctionPrototypeCall,
ObjectDefineProperty,
@@ -302,6 +303,7 @@
PromisePrototype,
PromisePrototypeThen,
SymbolIterator,
+ TypedArrayPrototypeJoin,
} = primordials;
// Because these functions are used by `makeSafe`, which is exposed
@@ -457,6 +459,12 @@
},
);
+ primordials.ArrayPrototypeToString = (thisArray) =>
+ ArrayPrototypeJoin(thisArray);
+
+ primordials.TypedArrayPrototypeToString = (thisArray) =>
+ TypedArrayPrototypeJoin(thisArray);
+
primordials.PromisePrototypeCatch = (thisPromise, onRejected) =>
PromisePrototypeThen(thisPromise, undefined, onRejected);