Hi Team, consider i have following script.
function run() {
console.log("before logger");
let promise = import("./logger.js");
promise.then(
function (module) {
const x = 10;
x++;
},
function (err) {
console.log(JSON.stringify(err));
}
);
console.log("after logger");
}
in this case promise success function, have error which changing the const value.
but Local<Function> call of that run function, return true in c++. also there is no error caught in v8::TryCatch in c++.
how to catch the error's after resolving the module.