-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
unexpected code generated with class expression #4630
Milestone
Comments
that is similar to function expressions (#4472). i will need to double check the ES6 grammar to be sure though. |
@DanielRosenwasser can you take a look. |
absence of parens effectively make generated code looks like this: var x = new (function () {
function class_1() {
}
class_1.prototype.hi = function () {
return "Hi!";
};
return class_1;
})()
x().hi(); |
my bad. we should parenthesize the output. |
Should be fixed for 1.8. Thanks for the heads up @vvakame |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
tested on 690b87c
source code.
expected.
actual.
The text was updated successfully, but these errors were encountered: