-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
INTERNAL COMPILER ERROR when module.exports refers to vars using combined var statement #2450
Comments
Related to this and other items (and I'm asking here, to not add the noise of another item for a possibly useless idea...), how about some kind of "fuzz testing", something to emit random valid JS programs as part of the Closure test suite? It is frustrating to see constructs discovered once at a time by Closure users that result in an (Ulterior motive... I'm hoping to see Closure in widespread use in a couple of years on sprawling Angular applications with lots of varied library code mixed in... which will likely span much of the space of possible JS constructs.) |
We had a fuzzer a few years back. It was deleted in c5d1ade but we might resurrect it someday. |
@MatrixFrog Thank you, I will watch the commits/PRs to see if it comes back someday. |
CommonJS modules are not used widely within Google and thus aren't as battle hardened as other passes. That and I rewrote the pass from scratch last year. |
A ran into the same issue. See #2507 I've added a test case which reproduces the problem here: nextjournal@2b75244 |
I submitted a PR with a fix for the problem here: #2509 Looking forward to your feedback. |
I think this can be closed now that 8fc8229 is merged. |
INTERNAL COMPILER ERROR when module.exports refers to vars using combined var statement
Problem was noticed by @atroche when trying to use https://github.com/joyent/node-bcrypt-pbkdf with ClojureScript.
Here is a minimal case which defines two vars using combined var statement and exposes those in
module.exports
. If both vars have their ownvar
statements no error occurs.foozz/bar.js
The text was updated successfully, but these errors were encountered: