Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Handle syntax errors #916

Closed
wants to merge 2 commits into from
Closed

Handle syntax errors #916

wants to merge 2 commits into from

Conversation

hermanventer
Copy link
Contributor

Set up an evaluation environment before parsing since the parse helper expects to be able to turn syntax errors into runtime errors.

Catch such errors and report them via handleError when not running eval.

Fixes issue: #900

@facebook-github-bot
Copy link

@hermanventer has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link

@hermanventer has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

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

Successfully merging this pull request may close these issues.

3 participants