Skip to content

Commit ec6796d

Browse files
authored
Remove duplicate export_es6 + modularize check. NFC (#24665)
We already do an exact same check above at line 992. Perhaps a copy-paste mistake.
1 parent 18afb83 commit ec6796d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

tools/link.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1477,12 +1477,6 @@ def limit_incoming_module_api():
14771477

14781478
set_initial_memory()
14791479

1480-
if settings.EXPORT_ES6 and not settings.MODULARIZE:
1481-
# EXPORT_ES6 requires output to be a module
1482-
if 'MODULARIZE' in user_settings:
1483-
exit_with_error('EXPORT_ES6 requires MODULARIZE to be set')
1484-
settings.MODULARIZE = 1
1485-
14861480
if settings.MODULARIZE and not settings.DECLARE_ASM_MODULE_EXPORTS:
14871481
# When MODULARIZE option is used, currently requires declaring all module exports
14881482
# individually - TODO: this could be optimized

0 commit comments

Comments
 (0)