Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly wrap our main binary in a IEFE. #1684

Merged
merged 1 commit into from
Jan 30, 2016

Conversation

cramforce
Copy link
Member

This avoids problems with chrome extensions and similar browser interference.

This is necessary now with closure compiler because it does not keep module functions in tact.

Adds a regression test for not leaking global symbols.

Fixes #1679

This avoids problems with chrome extensions and similar browser interference.

This is necessary now with closure compiler because it does not keep module functions in tact.

Adds a regression test for not leaking global symbols.

Fixes ampproject#1679
@dvoytenko
Copy link
Contributor

LGTM

@cramforce
Copy link
Member Author

Test error is unrelated (sending fix to validator test). Merging.

cramforce added a commit that referenced this pull request Jan 30, 2016
Properly wrap our main binary in a IEFE.
@cramforce cramforce merged commit e587ef4 into ampproject:master Jan 30, 2016
@cramforce cramforce deleted the wrapper-closure branch January 30, 2016 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants