Skip to content
This repository has been archived by the owner on Jun 23, 2018. It is now read-only.

Hook exit() in emscripted languages. #52

Open
max99x opened this issue Sep 21, 2011 · 0 comments
Open

Hook exit() in emscripted languages. #52

max99x opened this issue Sep 21, 2011 · 0 comments

Comments

@max99x
Copy link
Contributor

max99x commented Sep 21, 2011

Emscripted languages can call exit() which will raise a JS error and might render the interpreter non-functional. Currently we just print the exception as an internal error and continue as if nothing happened. Instead we should provide a way to hook into this call (e.g. via an exit event) so that clients can properly respond to exiting the interpreter. E.g. for repl.it that might mean printing an exit message and not restarting the prompt, or returning to the languages selector.

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

No branches or pull requests

1 participant