Skip to content
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

If not defined, etc., it will not be recognized. #22

Open
Zel9278 opened this issue Apr 6, 2021 · 0 comments
Open

If not defined, etc., it will not be recognized. #22

Zel9278 opened this issue Apr 6, 2021 · 0 comments

Comments

@Zel9278
Copy link

Zel9278 commented Apr 6, 2021

main.js

var some = {};
module.exports = some;

a

errorCheck.js

var file = require("path").join("main.js");
var src = require("fs").readFileSync(file);
var ec = check(src, file);

if(ec) return { ... };
require("./main.js");
...
uncaughtException - a is not defined
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

1 participant