4 ms·
I should mention in the post that source-map version that relies on WASM actually requires you to manually manage lifetime of SourceMapConsumer object[1], which
by mraleph 9y ago
I should mention in the post that source-map version that relies on WASM actually requires you to manually manage lifetime of SourceMapConsumer object[1], which my change does not actually require because the memory object is encapsulated within SourceMapConsumer itself.
I do agree that the way I manage mappings is hardly ergonomic. As mentioned in the post I would prefer to use Typed Objects to access the packed array of mappings,
but alas that proposal is stalled.
[1] https://github.com/mozilla/source-map#sourcemapconsumerprototypedestroy https://github.com/mozilla/source-map#sourcemapconsumerproto...