What's the correct way to get detailed information about an exception in
SpiderMonkey? Right now I'm using js::ErrorReport and am getting a
JSErrorReport* out of it, like this: <
https://github.com/mozilla/spidernode/blob/a8d3d29956b6b7378b004e1dcde60f6528c60386/deps/spidershim/src/v8message.cc#L37>
However, I'm hitting a few issues:
1. If the JS code throws an ErrorObject (such as |throw new Error("foo");|)
I get the line and column info as expected, but if it throws something else
(such as |throw new "foo";|) then the line and column number seem to always
be 0.
2. JSErrorReport::linebuf() seems to always return null.
I have not managed to find another way for extracting this information.
JS_ErrorFromException() also seems to only work with an ErrorObject, which
won't work for #1 above.
Am I doing something wrong?
Thanks,
--
Ehsan
_______________________________________________
dev-tech-js-engine-internals mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals