Comments (6)
from rust-sourcemap.
The line and column are zero indexed on lookup. Presumably you are passing wrong data.
from rust-sourcemap.
that's wired, because the same file is decoded correctly by https://www.npmjs.com/package/source-map
from rust-sourcemap.
@Brooooooklyn not sure what you mean. this library intentionally uses zero indexed values so you are passing the wrong values into the lookup functions.
from rust-sourcemap.
To clarify that: if you want to look up line 1 and column 1 you need to pass (0, 0)
and not (1, 1)
.
from rust-sourcemap.
Oh, I get it , sorry for my misunderstanding.
from rust-sourcemap.
Related Issues (18)
- Implement support for Facebook's ram-bundle sourcemaps HOT 3
- Overflow Panic in VLQ
- Implement hermes source maps HOT 2
- to_wirter hangs and eats lots of memory HOT 2
- Please publish a new version HOT 4
- impl DoubleEndedIterator for TokenIter
- Sourcemap locations may be resolved incorrectly in Firefox HOT 2
- Panic when source map contains emojis HOT 6
- RFC: Scope (fn) name inference
- Docs link in README returns 404 HOT 1
- Support `sourceRoot` from `SourceMapBuilder` HOT 4
- Weekly CI reports errors to me still HOT 1
- Make sourcemap mappings editable HOT 2
- Modernize the crate HOT 2
- Eagerly remove useless mappings
- Bug in `SourceMapIndex::flatten`
- Sourcemap parsing incorrectly prefixes sources with sourceRoot
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust-sourcemap.