File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -906,6 +906,13 @@ var splitModuleProxyHandler = {
906
906
} ;
907
907
#endif
908
908
909
+ #if LOAD_SOURCE_MAP
910
+ function receiveSourceMapJSON ( sourceMap ) {
911
+ wasmSourceMap = new WasmSourceMap ( sourceMap ) ;
912
+ { { { runOnMainThread ( "removeRunDependency('source-map');" ) } } }
913
+ }
914
+ #endif
915
+
909
916
#if SPLIT_MODULE || ! WASM_ASYNC_COMPILATION
910
917
function instantiateSync ( file , info ) {
911
918
var instance ;
@@ -1116,11 +1123,6 @@ function createWasm() {
1116
1123
1117
1124
#if LOAD_SOURCE_MAP
1118
1125
{ { { runOnMainThread ( "addRunDependency('source-map');" ) } } }
1119
-
1120
- function receiveSourceMapJSON ( sourceMap ) {
1121
- wasmSourceMap = new WasmSourceMap ( sourceMap ) ;
1122
- { { { runOnMainThread ( "removeRunDependency('source-map');" ) } } }
1123
- }
1124
1126
#endif
1125
1127
1126
1128
// Prefer streaming instantiation if available.
Original file line number Diff line number Diff line change @@ -9617,6 +9617,14 @@ def test_asan_null_deref(self):
9617
9617
'AddressSanitizer: null-pointer-dereference on address' ,
9618
9618
])
9619
9619
9620
+ def test_asan_sync_compilation (self ):
9621
+ self .set_setting ('WASM_ASYNC_COMPILATION' , 0 )
9622
+ self .do_runf (test_file ('other/test_asan_null_deref.c' ),
9623
+ emcc_args = ['-fsanitize=address' , '-gsource-map' ],
9624
+ assert_returncode = NON_ZERO , expected_output = [
9625
+ 'AddressSanitizer: null-pointer-dereference on address' ,
9626
+ ])
9627
+
9620
9628
def test_asan_memory_growth (self ):
9621
9629
self .do_runf (test_file ('other/test_asan_null_deref.c' ),
9622
9630
emcc_args = ['-fsanitize=address' , '-sALLOW_MEMORY_GROWTH' ],
You can’t perform that action at this time.
0 commit comments