-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
results from SourceMap::lookup_token is not correct #7
Comments
The line and column are zero indexed on lookup. Presumably you are passing wrong data. |
that's wired, because the same file is decoded correctly by https://www.npmjs.com/package/source-map |
@Brooooooklyn not sure what you mean. this library intentionally uses zero indexed values so you are passing the wrong values into the lookup functions. |
To clarify that: if you want to look up line 1 and column 1 you need to pass |
Oh, I get it , sorry for my misunderstanding. |
you can find a playground project in https://github.com/Brooooooklyn/sourcemap-issue
and
yarn && yarn start
to see the follow result:and the result from https://www.npmjs.com/package/source-map:
The text was updated successfully, but these errors were encountered: