You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever I get an error evaluating some js source, I throw the JsError and report the bad line and code, which I take from the error source_line property.
After upgrading deno_core from 0.294 to the latest (0.319), I've noticed the source_line is always None.
Example:
Evaluating this broken code: console.log("test"
would lead to this error:
I tried bisecting to find where this problem first occurred, and it seems somewhere between 0.294 and 0.298 (not sure the exact version, since some of them didn't work at all for me)
I compared the versions: 0.294.0...0.298.0
and I found this change in Error trace, which seems related: #827
Perhaps removing the "fallback" behavior in the else is the cause for the missing source_line @bartlomieju?
(the `source_line = msg.get_source_line(scope) part)
The text was updated successfully, but these errors were encountered:
Any suggestions @bartlomieju? Is this expected when a source map getter is not used? Because now I don't have a way to know what the defective code is (just line number)
I am using deno_core to create a Js runtime (following the great https://deno.com/blog/roll-your-own-javascript-runtime blog post)
Whenever I get an error evaluating some js source, I throw the JsError and report the bad line and code, which I take from the error
source_line
property.After upgrading deno_core from 0.294 to the latest (0.319), I've noticed the
source_line
is always None.Example:
Evaluating this broken code:
console.log("test"
would lead to this error:
and after the upgrade, it leads to this error:
(notice the
None
source_line)Some findings:
I tried bisecting to find where this problem first occurred, and it seems somewhere between 0.294 and 0.298 (not sure the exact version, since some of them didn't work at all for me)
I compared the versions: 0.294.0...0.298.0
and I found this change in Error trace, which seems related: #827
specifically, the change in
error.rs
:https://github.com/denoland/deno_core/pull/827/files#diff-c8dcedfc29d534d8c70ded455f342bedc1611fb609bc5e62a379004fb496cc65
Perhaps removing the "fallback" behavior in the
else
is the cause for the missing source_line @bartlomieju?(the `source_line = msg.get_source_line(scope) part)
The text was updated successfully, but these errors were encountered: