Skip to content

Commit fc66f9a

Browse files
authored
Remove unnecessary @nocollape. NFC (#23216)
This was added back in #20191 but I can't see how it can work. The thing is being applied to here is a function variable. e.g.: ``` var Modulle = function() { ... return the a new module }; ``` From the documentation for @nocollape is not clear to me that it has any effect on normal variables like this.
1 parent d23a20d commit fc66f9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/link.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2430,7 +2430,7 @@ def modularize():
24302430
if settings.MINIMAL_RUNTIME and not settings.PTHREADS:
24312431
# Single threaded MINIMAL_RUNTIME programs do not need access to
24322432
# document.currentScript, so a simple export declaration is enough.
2433-
src = f'/** @nocollapse */ var {settings.EXPORT_NAME} = {wrapper_function};'
2433+
src = f'var {settings.EXPORT_NAME} = {wrapper_function};'
24342434
else:
24352435
script_url_node = ''
24362436
# When MODULARIZE this JS may be executed later,

0 commit comments

Comments
 (0)