diff --git a/lib/internal/util/inspect.js b/lib/internal/util/inspect.js index da71e4513d99a3..bc5ea4b31a2ad5 100644 --- a/lib/internal/util/inspect.js +++ b/lib/internal/util/inspect.js @@ -1216,7 +1216,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) {