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

Try evaling tasks with and without parentheses, closes #326 #327

Closed
wants to merge 1 commit into from

Conversation

cpsievert
Copy link
Collaborator

See #326

var taskFunc = eval(task);
} catch(error) {
console.error(err);
console.error(error);
Copy link
Collaborator

@jcheng5 jcheng5 Feb 4, 2019

Choose a reason for hiding this comment

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

I don't think we should swallow the error here

@jcheng5
Copy link
Collaborator

jcheng5 commented Feb 4, 2019

This isn't a good idea--if the eval'd code has side effects, they could happen more than once. If you really need this, I think it'd be better to introduce either an explicit argument switching the behavior, or a new function altogether.

@cpsievert
Copy link
Collaborator Author

Closing in favor of #328

@cpsievert cpsievert closed this Feb 4, 2019
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