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

fix enum export by upgrading closure compiler #51

Closed
wants to merge 0 commits into from
Closed

fix enum export by upgrading closure compiler #51

wants to merge 0 commits into from

Conversation

evmar
Copy link
Contributor

@evmar evmar commented Feb 8, 2016

If you wrote "export enum ...", the generated ES6 JavaScript would
fail to compile in the Closure compiler. I tracked this down to
a bug that was fixed in the upstream Closure compiler, so to fix
this I had to make us use a newer version of the upstream compiler.

To use a newer version of the upstream compiler, I removed one of
our indirection layers: we previously used the 'closure-compiler'
npm library which pulled in 'google-closure-compiler', but now the
latter module exposes a simple API so it's easy enough to just use
it directly.

Fixes issue #50.

enum EnumTest1 {XYZ, PI = 3.14159}

export enum EnumTest2 {XYZ, PI = 3.14159}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OOC what difference does export make?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, maybe add a comment to explain why an exported enum needs separate testing.

@rkirov rkirov added the LGTM label Feb 8, 2016
@evmar evmar closed this Feb 8, 2016
@evmar evmar deleted the export-enum branch February 8, 2016 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants