We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
With the PR about to drop, line numbers will be correct from this code:
import peggy from "peggy-tag"; const parse123 = peggy`foo = $("f" "o"+)`; console.log(parse123("foooo")); // "foooo"
but column numbers for errors thrown from the last line will be off by three. Find a way to determine where "foooo" actually starts.
"foooo"
The text was updated successfully, but these errors were encountered:
From discord discussion, to reproduce:
Error.prepareStackTrace = (_, s) => s; function createFunc() { return () => { const sites = new Error().stack; console.log(sites[1].getColumnNumber()); console.log(sites[1].getFunctionName()); }; } const parse123 = createFunc(); parse123();
Sorry, something went wrong.
No branches or pull requests
With the PR about to drop, line numbers will be correct from this code:
but column numbers for errors thrown from the last line will be off by three. Find a way to determine where
"foooo"
actually starts.The text was updated successfully, but these errors were encountered: