-
Notifications
You must be signed in to change notification settings - Fork 174
Regression: Incorrect line number tracking #779
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
bug
Something isn't working
Comments
bnoordhuis
added a commit
to bnoordhuis/quickjs
that referenced
this issue
Jan 2, 2025
Commit 73cc00e reduced the number of emitted source locations a great deal but it resulted in at least one observable regression: export default async function f() { return "abc" + x } f() // ReferenceError should point to 2:20 but pointed to 1:1 Emit source locations for expressions again. Increases the average number of source locations by about 15%. Non-scientifically tested by counting source locations emitted when parsing the test suite before and after. No test because we currently cannot easily test stack traces coming from module imports. Fixes: quickjs-ng#779
bnoordhuis
added a commit
to bnoordhuis/quickjs
that referenced
this issue
Jan 5, 2025
Commit 73cc00e reduced the number of emitted source locations a great deal but it resulted in at least one observable regression: export default async function f() { return "abc" + x } f() // ReferenceError should point to 2:20 but pointed to 1:1 Emit source locations for expressions again. Increases the average number of source locations by about 15%. Non-scientifically tested by counting source locations emitted when parsing the test suite before and after. No test because we currently cannot easily test stack traces coming from module imports. Fixes: quickjs-ng#779
bnoordhuis
added a commit
to bnoordhuis/quickjs
that referenced
this issue
Jan 5, 2025
Commit 73cc00e reduced the number of emitted source locations a great deal but it resulted in at least one observable regression: export default async function f() { return "abc" + x } f() // ReferenceError should point to 2:20 but pointed to 1:1 Emit source locations for expressions again. Increases the average number of source locations by about 15%. Non-scientifically tested by counting source locations emitted when parsing the test suite before and after. No test because we currently cannot easily test stack traces coming from module imports. Fixes: quickjs-ng#779
bnoordhuis
added a commit
that referenced
this issue
Jan 5, 2025
Commit 73cc00e reduced the number of emitted source locations a great deal but it resulted in at least one observable regression: export default async function f() { return "abc" + x } f() // ReferenceError should point to 2:20 but pointed to 1:1 Emit source locations for expressions again. Increases the average number of source locations by about 15%. Non-scientifically tested by counting source locations emitted when parsing the test suite before and after. No test because we currently cannot easily test stack traces coming from module imports. Fixes: #779
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Regression introduced by: #660
Line numbers are incorrectly reported
Reproducable
a.js
b.js
Output
Expectation (version 0.6.0, or parent commit c8be383)
Related issues:
DelSkayn/rquickjs#406
The text was updated successfully, but these errors were encountered: