@@ -606,13 +606,12 @@ def test_preload_caching(self, extra_size):
606606 addToLibrary({
607607 checkPreloadResults: function() {
608608 var cached = 0;
609- var packages = Object.keys(Module['preloadResults']);
610- packages.forEach(function(package) {
611- var fromCache = Module['preloadResults'][package]['fromCache'];
609+ for (var result of Object.values(Module['preloadResults'])) {
610+ var fromCache = result['fromCache'];
612611 if (fromCache) {
613612 cached++;
614613 }
615- });
614+ }
616615 return cached;
617616 }
618617 });
@@ -945,7 +944,7 @@ def test_sdl_stb_image_cleanup(self):
945944 'safe_heap_O2' : (['-sSAFE_HEAP' , '-O2' ],),
946945 })
947946 def test_sdl_canvas (self , args ):
948- self .btest_exit ('test_sdl_canvas.c' , cflags = ['-sSTRICT_JS' , '- sLEGACY_GL_EMULATION' , '-lSDL' , '-lGL' ] + args )
947+ self .btest_exit ('test_sdl_canvas.c' , cflags = ['-sLEGACY_GL_EMULATION' , '-lSDL' , '-lGL' ] + args )
949948
950949 def test_sdl_canvas_alpha (self ):
951950 # N.B. On Linux with Intel integrated graphics cards, this test needs Firefox 49 or newer.
@@ -1059,7 +1058,7 @@ def test_sdl_mouse_offsets(self):
10591058 self .run_browser ('page.html' , '' , '/report_result?exit:0' )
10601059
10611060 def test_glut_touchevents (self ):
1062- self .btest_exit ('glut_touchevents.c' , cflags = ['-lglut' , '-sSTRICT_JS' ])
1061+ self .btest_exit ('glut_touchevents.c' , cflags = ['-lglut' ])
10631062
10641063 def test_glut_wheelevents (self ):
10651064 self .btest_exit ('glut_wheelevents.c' , cflags = ['-lglut' ])
@@ -4847,8 +4846,6 @@ def test_browser_run_from_different_directory_async(self):
48474846 # also also we eval the initial code, so currentScript is not present. That prevents us
48484847 # from finding the file in a subdir, but here we at least check we do not regress compared to the
48494848 # normal case of finding in the current dir.
4850- # test both modularize (and creating an instance) and modularize-instance
4851- # (which creates by itself)
48524849 @parameterized ({
48534850 '' : ([], ['-sMODULARIZE' ], 'Module();' ),
48544851 'subdir' : (['subdir' ], ['-sMODULARIZE' ], 'Module();' ),
@@ -4865,7 +4862,7 @@ def test_browser_modularize_no_current_script(self, path, args, creation):
48654862 setTimeout(async () => {
48664863 let response = await fetch('test.js');
48674864 let text = await response.text();
4868- eval(text);
4865+ let Module = eval(text + '; Module' );
48694866 %s
48704867 }, 1);
48714868 </script>
@@ -4953,7 +4950,6 @@ def test_no_declare_asm_module_exports_wasm2js(self, args):
49534950
49544951 @parameterized ({
49554952 '' : ([],),
4956- 'strict_js' : (['-sSTRICT_JS' ],),
49574953 'minimal_runtime' : (['-sMINIMAL_RUNTIME=1' ],),
49584954 'minimal_runtime_2' : (['-sMINIMAL_RUNTIME=2' ],),
49594955 })
@@ -5425,8 +5421,8 @@ def test_pthread_unhandledrejection(self):
54255421 def test_pthread_key_recreation (self ):
54265422 self .btest_exit ('pthread/test_pthread_key_recreation.c' , cflags = ['-pthread' , '-sPTHREAD_POOL_SIZE=1' ])
54275423
5428- def test_full_js_library_strict (self ):
5429- self .btest_exit ('hello_world.c' , cflags = ['-sINCLUDE_FULL_LIBRARY' , '-sSTRICT_JS' ])
5424+ def test_full_js_library (self ):
5425+ self .btest_exit ('hello_world.c' , cflags = ['-sINCLUDE_FULL_LIBRARY' ])
54305426
54315427 # Tests the AudioWorklet demo
54325428 @parameterized ({
0 commit comments