ClojureScript REPL needs error handling for the special functions

Description

Currently the the special functions are not run int a try catch block. This creates a brittle repl that will fail is someone trys to require a namespace that doesn't exist or execute any of the special functions with error causing arguments.

The following fail and terminate the repl loop.
(require 'ex) where ex doesn't exist
(in-ns '5) causes an infinite loop.

Environment

ClojureScript 2688

Attachments

1

Activity

Show:

Bruce Hauman January 16, 2015 at 10:32 PM

Here is a patch that fixes this. A general handler ensures that injected special-fns are handled as well.

Completed

Details

Assignee

Reporter

Priority

Created January 16, 2015 at 10:22 PM
Updated January 16, 2015 at 11:22 PM
Resolved January 16, 2015 at 11:22 PM