Skip to content

Keep arguments across statement wrappers #4

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

Closed
satyr opened this issue Nov 6, 2010 · 1 comment
Closed

Keep arguments across statement wrappers #4

satyr opened this issue Nov 6, 2010 · 1 comment

Comments

@satyr
Copy link
Owner

satyr commented Nov 6, 2010

So that this:
$ coco -e 'console.log arguments is (switch case 1 then arguments)'
false
results in true.

Before

console.log(arguments === (function(){
  switch (false) {
  case !1:
    return arguments;
  }
}.apply(this, arguments)));

After

console.log(arguments === (function(_args){
  switch (false) {
  case !1:
    return _args;
  }
}(arguments)));
@satyr
Copy link
Owner Author

satyr commented Nov 9, 2010

closed by 7dd7f98; statement wrappers now precisely emulate arguments

josher19 pushed a commit to josher19/LiveScript that referenced this issue Jun 21, 2012
Merge pull request satyr#4 from josher19/patch-2
This issue was closed.
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