This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check that require.main.filename is defined (#233)
- Loading branch information
b84b88c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just pointing out that if
require.main.filename
is null, we won't fall back toprocess.cwd
(not that we were before – it just blew up).