Skip to content

Commit b87dfc8

Browse files
author
David Sheldrick
committed
update dist
1 parent 121d627 commit b87dfc8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dist/source-map.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2919,7 +2919,7 @@ module.exports = function wasm() {
29192919
return cachedWasm;
29202920
}
29212921

2922-
let currentCallback = null;
2922+
const callbackStack = [];
29232923

29242924
cachedWasm = readWasm().then(buffer => {
29252925
return WebAssembly.instantiate(buffer, {
@@ -2960,7 +2960,7 @@ module.exports = function wasm() {
29602960
}
29612961
}
29622962

2963-
currentCallback(mapping);
2963+
callbackStack[callbackStack.length - 1](mapping);
29642964
},
29652965

29662966
start_all_generated_locations_for: function () { console.time("all_generated_locations_for"); },
@@ -2989,11 +2989,11 @@ module.exports = function wasm() {
29892989
return {
29902990
exports: wasm.instance.exports,
29912991
withMappingCallback: (mappingCallback, f) => {
2992-
currentCallback = mappingCallback;
2992+
callbackStack.push(mappingCallback)
29932993
try {
29942994
f();
29952995
} finally {
2996-
currentCallback = null;
2996+
callbackStack.pop()
29972997
}
29982998
}
29992999
};

0 commit comments

Comments
 (0)