Skip to content

Run eval script in embed mode only if -e was given? #73

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
luminosuslight opened this issue Feb 15, 2018 · 0 comments
Open

Run eval script in embed mode only if -e was given? #73

luminosuslight opened this issue Feb 15, 2018 · 0 comments
Assignees

Comments

@luminosuslight
Copy link
Collaborator

@cmfcmf You said that eval has to be called regardless whether -e was given as a cmd argument or not, because it sets globals.require to the require module. Could you check if this is still true?

if (process._eval != null) {
// User passed '-e' or '--eval'
evalScript('[eval]');
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants