Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Conversation

@jasonLaster
Copy link
Contributor

Associated Issue: #4106

Summary of Changes

  • wraps expressions in a try/catch

Test Plan

unit tests

return input.replace(/\\/g, "\\\\").replace(/"/g, "\\$&");
}

// eval("try {foo.barn" + '\n' + "} catch (e) {e.name + ': ' + e.message;}")
Copy link
Contributor

Choose a reason for hiding this comment

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

remove comment

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants