Skip to content

Commit f669970

Browse files
committed
simplyfi help code
1 parent b277aea commit f669970

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

test/test_other.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3973,19 +3973,17 @@ def test_file_packager_export_es6(self):
39733973
create_file('run.js', '''
39743974
import loadDataFile from './dataFileLoader.js'
39753975
import {default as loadModule} from './moduleFile.js'
3976-
3976+
39773977
loadModule().then((module) => {
39783978
loadDataFile(module)
3979-
.catch((cause) => Promise.reject(cause))
39803979
.then(() => {
39813980
module._test_fun();
39823981
}
39833982
);
39843983
});
39853984
''')
39863985

3987-
output = self.run_js('run.js')
3988-
self.assertContained('hello data', output)
3986+
self.assertContained('hello data', self.run_js('run.js'))
39893987

39903988
@crossplatform
39913989
def test_file_packager_depfile(self):

tools/file_packager.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,8 +492,7 @@ def main(): # noqa: C901, PLR0912, PLR0915
492492
return 1
493493

494494
if options.from_emcc and options.export_es6:
495-
diagnostics.error('Can\'t use --export-es6 option together with --from-emcc since the code should be embedded '
496-
'within emcc\'s code')
495+
diagnostics.error('Can\'t use --export-es6 option together with --from-emcc since the code should be embedded within emcc\'s code')
497496
return 1
498497

499498
walked.append(__file__)

0 commit comments

Comments
 (0)