Need external source map support
Describe your feature request here.
Evaluating web pack bundles like dcp-client makes for horrifyingly bad stack traces if we don't have external source map support.
This can be avoided in dcp-client by building a debug bundle which uses internal source maps, but that's not the common case with code found in the wild.
I believe I added an options argument to pm.eval. I suggest adding an option which is the path to the sourcemap file.
Code example
No response
I see CompileOptions& setSourceMapURL(const char16_t* s) which looks promising
This might not be possible in spidermonkey
External source map support seems limited to passing a URL through from JS::Compile to the script object, where in firefox it is extracted JS debugger, and parsed in userland (I think)
A quick experiment,
options.setSourceMapURL(u"file://./dcp-client-bundle.js.map");
also doesn't seem to do anything, I even looked with strace and tried a few variations.
We may have to punt on this one.