mirror of
https://github.com/electron/electron.git
synced 2026-01-08 23:18:06 -05:00
chore: change remaining usages of process.mainModule (#38705)
This commit is contained in:
@@ -9,7 +9,7 @@ const NPX_CMD = process.platform === 'win32' ? 'npx.cmd' : 'npx';
|
||||
const utils = require('./lib/utils');
|
||||
const { YARN_VERSION } = require('./yarn');
|
||||
|
||||
if (!process.mainModule) {
|
||||
if (!require.main) {
|
||||
throw new Error('Must call the nan spec runner directly');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user