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

Unmarshal received this when marshalling closures #95

Closed
71104 opened this issue Jun 5, 2016 · 0 comments
Closed

Unmarshal received this when marshalling closures #95

71104 opened this issue Jun 5, 2016 · 0 comments
Labels

Comments

@71104
Copy link
Owner

71104 commented Jun 5, 2016

The following program:

let http = process.mainModule.require "http" in

let server = http.createServer fn request, response ->
  response.end.apply {"Oh hai!"} in

server.listen 8080

fails in Node v4.4.5.

The reason is that the native function generated when marshalling Lambda closures doesn't add the received this to the context.

This bug will probably be obsoleted by #84, which will require reimplementing tha closure marshaller from scratch, but it still needs to be reported.

@71104 71104 added the bug label Jun 5, 2016
71104 added a commit that referenced this issue Jun 17, 2016
@71104 71104 closed this as completed Jun 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant