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

Arity transparency with eval wrapper #3

Closed
wants to merge 3 commits into from
Closed

Arity transparency with eval wrapper #3

wants to merge 3 commits into from

Conversation

mightyiam
Copy link
Collaborator

Fixes #2.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 36705ec on mightyiam:arity-eval-wrapper into ba0208c on tjoskar:master.

// prevent it from evaluating as
// a function declaration
`(function (${stubArgs}) { ${stubBody} })`
);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My first real use of eval.

I wish there was a way to do this that seems less of a hack.

I also tried with Function() but it seems that unlike eval, the body's scope is always only global.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 6f86458 on mightyiam:arity-eval-wrapper into ba0208c on tjoskar:master.

@mightyiam
Copy link
Collaborator Author

#4 seems so much more appealing.

@mightyiam mightyiam closed this Oct 28, 2016
@mightyiam mightyiam deleted the arity-eval-wrapper branch October 28, 2016 22:22
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

2 participants