Adds a failing test for System JS compilation. #3376
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I do not know nearly enough about JavaScript or SystemJS to understand why the semicolon is necessary, but without it the module fails to load in chrome (unsure about other browsers). A semicolon does not appear to be necessary on the second
exports_1(...)
call, though perhaps it would be easiest to just apply the semicolon more liberally in general to avoid dealing with JavaScript semicolon weirdness?Note: It is possible this test could be whittled down some more and the bug would still reproduce but I don't have an environment setup to get chrome to throw an error (outside of the application I am working on where I first saw the bug) so I didn't want to over-reduce it. I believe that fundamentally this is the issue I am seeing, hopefully a JavaScript expert can chime in and indicate what the minimum necessary repro case actually is.