You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See tvcutsem/harmony-reflect#47 (comment). A safe way to concatenate JS files would be to join on "\n;", but that is not robust against potential future additions to the language (such as allowing unclosed trailing multiline comments).
The text was updated successfully, but these errors were encountered:
For scripts, there's no reliable way to combine two into the same file and preserve all semantics. For modules, you can just parse both programs and append the module items of the latter program to those of the former.
brentvatne
changed the title
naïve concatenation of JS files breaks things
[Packager] naïve concatenation of JS files breaks things
May 30, 2015
See tvcutsem/harmony-reflect#47 (comment). A safe way to concatenate JS files would be to join on
"\n;"
, but that is not robust against potential future additions to the language (such as allowing unclosed trailing multiline comments).The text was updated successfully, but these errors were encountered: