- Version: > v4
- Platform: all
- Subsystem: test
Since v4 entered maintenance, do you think we can eliminate most of the 433 instances of indexOf from /test/*.js?
Note: The prefered alternative is assert.strictEqual(foo.includes(bar), true)
Each hit should be evaluated whether it's an includes surrogate, or a real indexOf use:
test\addons\repl-domain-abort
test\async-hooks
test\common
test\disabled
test\doctool
test\internet
test\parallel
test\pummel
and a special treat
Since v4 entered maintenance, do you think we can eliminate most of the 433 instances of
indexOffrom/test/*.js?Note: The prefered alternative is
assert.strictEqual(foo.includes(bar), true)Each hit should be evaluated whether it's an
includessurrogate, or a realindexOfuse:test\addons\repl-domain-abort
test\async-hooks
test\common
test\disabled
test\doctool
test\internet
test\parallel
test\pummel
and a special treat