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

arguments are mangled in continuations #3

Closed
maxtaco opened this issue Jan 29, 2012 · 1 comment
Closed

arguments are mangled in continuations #3

maxtaco opened this issue Jan 29, 2012 · 1 comment

Comments

@maxtaco
Copy link
Owner

maxtaco commented Jan 29, 2012

As reported by @devongovett

fn = ->
  await setTimeout defer(), 1000
  alert arguments[0]

fn 'hi'

Two options, either use CS's pretty apply(this, arguments) technique, or do the ugly thing, with is to set var _arguments = arguments, as how _this = this is handled.

@maxtaco
Copy link
Owner Author

maxtaco commented Jan 31, 2012

Now closed, though potentially we need a cleaner solution.

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

No branches or pull requests

1 participant