test: refactor test-fs-non-number-arguments-throw
Checklist
-
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
test, fs
Description of change
- Add RegExp arguments to throws assertions.
- Use common.mustCall for emitter callback.