diff --git a/lib/internal/util/inspect.js b/lib/internal/util/inspect.js index 5bb671e6ad6a35..2e3e1b60be871c 100644 --- a/lib/internal/util/inspect.js +++ b/lib/internal/util/inspect.js @@ -1215,7 +1215,7 @@ function getFunctionBase(value, constructor, tag) { function identicalSequenceRange(a, b) { for (let i = 0; i < a.length - 3; i++) { // Find the first entry of b that matches the current entry of a. - const pos = b.indexOf(a[i]); + const pos = ArrayPrototypeIndexOf(b, a[i]); if (pos !== -1) { const rest = b.length - pos; if (rest > 3) {