diff --git a/js/tests/test.mjs b/js/tests/test.mjs index c6b3ac46f..99791770b 100644 --- a/js/tests/test.mjs +++ b/js/tests/test.mjs @@ -27,7 +27,7 @@ const eq = (a, b) => { const noSplit = !''.split const noJoin = ![].join String.prototype.split = split - String.prototype.split = join + Array.prototype.join = join deepStrictEqual(a, b) noSplit && (String.prototype.split = undefined) noJoin && (Array.prototype.join = undefined)