Skip to content

Commit 8a027b7

Browse files
committed
Tweaks
1 parent 4b05f80 commit 8a027b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/test_browser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5401,7 +5401,7 @@ def test_fetch_polyfill_preload(self):
54015401
''' % path)
54025402

54035403
def test(args, expect_fail):
5404-
self.compile_btest('main.cpp', args + ['--preload-file', path, '-o', 'a.out.html'])
5404+
self.compile_btest('main.cpp', ['--preload-file', path, '-o', '-sEXIT_RUNTIME', 'a.out.html'] + args)
54055405
if expect_fail:
54065406
js = read_file('a.out.js')
54075407
create_file('a.out.js', 'let origFetch = fetch; fetch = undefined;\n' + js)

tools/file_packager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ def generate_js(data_target, data_files, metadata):
774774
}
775775
var REMOTE_PACKAGE_NAME = Module['locateFile'] ? Module['locateFile'](REMOTE_PACKAGE_BASE, '') : REMOTE_PACKAGE_BASE;\n''' % (js_manipulation.escape_for_js_string(data_target), js_manipulation.escape_for_js_string(remote_package_name))
776776
metadata['remote_package_size'] = remote_package_size
777-
ret += ''' var REMOTE_PACKAGE_SIZE = metadata['remote_package_size'];\n'''
777+
ret += '''var REMOTE_PACKAGE_SIZE = metadata['remote_package_size'];\n'''
778778

779779
if options.use_preload_cache:
780780
# Set the id to a hash of the preloaded data, so that caches survive over multiple builds

0 commit comments

Comments
 (0)