We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef55f77 commit 4e304dbCopy full SHA for 4e304db
lib/source-map-consumer.js
@@ -301,7 +301,9 @@ class BasicSourceMapConsumer extends SourceMapConsumer {
301
const aStr = this._mappings;
302
const size = aStr.length;
303
304
- const mappingsBufPtr = this._wasm.exports.allocate_mappings(size);
+ // Interpret signed result of allocate_mappings as unsigned, otherwise
305
+ // addresses higher than 2GB will be negative.
306
+ const mappingsBufPtr = this._wasm.exports.allocate_mappings(size) >>> 0;
307
const mappingsBuf = new Uint8Array(
308
this._wasm.exports.memory.buffer,
309
mappingsBufPtr,
0 commit comments