mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
chore: change remaining usages of process.mainModule (#38705)
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user