Skip to content

Conversation

jimallman
Copy link
Contributor

Currently the JS runtime CharStreams.fromString sometimes returns (and mangles) the global window object instead of returning a proper InputStream. This is prevented by using the new keyword in this and similar helper methods.

@bhamiltoncx, please take a look. Perhaps I'm doing something wrong... if so, I'm happy to be mistaken!

Currently the JS runtime sometimes returns (and mangles) the global
`window` object instead of a proper InputStream. This is prevented by
using the `new` keyword in all cases.
@bhamiltoncx
Copy link
Contributor

@jimallman
Copy link
Contributor Author

Can you also fix lines 33 and 56? They have the same error.

Done! Thanks for taking a look.

@bhamiltoncx
Copy link
Contributor

LGTM. @parrt, anything we need before merging?

@parrt parrt added this to the 4.7.1 milestone May 11, 2017
@parrt parrt merged commit cf359a0 into antlr:master May 11, 2017
@ericvergnaud
Copy link
Contributor

Blessed

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.

4 participants