Hi,
I just wanted to chime in here. I am the colleague that pblattnerjr mentions above.
We have exposed a .NET global object through ClearScript which contains a method which loads the contents of a referenced JavaScript module and calls the ScriptEngine.Execute method. We do this so that we can associate a document name with a dynamically loaded module. We used this to create a module loader similar to the node.js require syntax.
From our .NET application we call ScriptEngine.Execute to run JavaScript module, and associate a document name with that module. From that JavaScript module we call a .NET method which executes another JavaScript module. If that secondary JavaScript module contains a SyntaxError, the location is not reported because we have a JavaScript stack trace (due to the first JavaScript module).
I just wanted to chime in here. I am the colleague that pblattnerjr mentions above.
We have exposed a .NET global object through ClearScript which contains a method which loads the contents of a referenced JavaScript module and calls the ScriptEngine.Execute method. We do this so that we can associate a document name with a dynamically loaded module. We used this to create a module loader similar to the node.js require syntax.
From our .NET application we call ScriptEngine.Execute to run JavaScript module, and associate a document name with that module. From that JavaScript module we call a .NET method which executes another JavaScript module. If that secondary JavaScript module contains a SyntaxError, the location is not reported because we have a JavaScript stack trace (due to the first JavaScript module).