Skip to content

Properly wrap our main binary in a IEFE.#1684

Merged
cramforce merged 1 commit intoampproject:masterfrom
cramforce:wrapper-closure
Jan 30, 2016
Merged

Properly wrap our main binary in a IEFE.#1684
cramforce merged 1 commit intoampproject:masterfrom
cramforce:wrapper-closure

Conversation

@cramforce
Copy link
Copy Markdown
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
Copy Markdown
Contributor

LGTM

@cramforce
Copy link
Copy Markdown
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.

2 participants