syntax-error icon indicating copy to clipboard operation
syntax-error copied to clipboard

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

Open Zel9278 opened this issue 3 years ago • 0 comments

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

Zel9278 avatar Apr 06 '21 07:04 Zel9278