selfhost: eval does not catch and return errors

Description

in cljs.js, eval-str catches errors during analysis, compilation and evaluation, and returns a {:value … :error …} map. In contrast, the eval function doesn’t catch errors during the evaluation step. Attached patch + tests to make these behave consistently.

Environment

None

Activity

Show:
David Nolen
January 4, 2021, 5:48 PM
Fixed

Assignee

David Nolen

Reporter

Matthew Huebert

Labels

None

Approval

Accepted

Patch

Code and Test

Priority

Major