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

Fixed JS call codegen, when first parameters are compile-time. #2761

Merged
merged 1 commit into from May 19, 2015

Conversation

yglukhov
Copy link
Member

Fix for #2696. The problem is in condition that emits comma. Comma should not be emitted, if no arguments were emitted.

@def-
Copy link
Member

def- commented May 19, 2015

The C backend does not do it that way, which is why I didn't go that way. But not sure how the C backend gets rid of the arguments instead.

@yglukhov
Copy link
Member Author

C backed operates in a similar way: https://github.com/Araq/Nim/blob/devel/compiler/ccgcalls.nim#L174

@def-
Copy link
Member

def- commented May 19, 2015

Ok, looks like I missed that.

Araq added a commit that referenced this pull request May 19, 2015
Fixed JS call codegen, when first parameters are compile-time.
@Araq Araq merged commit c34d7e6 into nim-lang:devel May 19, 2015
@yglukhov
Copy link
Member Author

Thank you!

@yglukhov yglukhov deleted the js-codegen-fix branch May 19, 2015 17:50
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.

None yet

3 participants