chore: change remaining usages of process.mainModule (#38705)

This commit is contained in:
David Sanders 2023-06-12 15:55:36 +08:00 committed by GitHub
parent ab49e98401
commit f5869b6fb9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 6 deletions

View file

@ -15,7 +15,7 @@ const TAP_FILE_NAME = 'test.tap';
const utils = require('./lib/utils');
if (!process.mainModule) {
if (!require.main) {
throw new Error('Must call the node spec runner directly');
}