File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 } ;
You can’t perform that action at this time.
0 commit comments