Hi,
I seem to have the same problem.
I adapted the basic module loader of node.js (native_module.js). Loading a module will call into a run method in the JavaScript module implementation. This in turn calls back into c# to finally execute the code on the engine.
Doing this however does not give us useful information like position in case of syntax errors in the module to be loaded:
Currently we use version 5.4.5.
Is this already fixed in 5.4.6? Or is there any workaround?
I seem to have the same problem.
I adapted the basic module loader of node.js (native_module.js). Loading a module will call into a run method in the JavaScript module implementation. This in turn calls back into c# to finally execute the code on the engine.
Doing this however does not give us useful information like position in case of syntax errors in the module to be loaded:
SyntaxError: Unexpected token ILLEGAL
at NativeModule.run (snp_native_module.js [temp]:140:41) -> exports.checkMeasurement = function (measurement) {§
at NativeModule.run (snp_native_module.js [temp]:65:22)
The wrong token $ is not in snp_native_module.js. But 140:41 in snp_native_module.js is the location where I call back to c# to execute the module.Currently we use version 5.4.5.
Is this already fixed in 5.4.6? Or is there any workaround?