good morning!!!!

Skip to content
Snippets Groups Projects
Commit acc8f7fa authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

Add defer rescued back in

parent d5d9746c
No related branches found
No related tags found
No related merge requests found
......@@ -86,6 +86,11 @@ func (self *JSRepl) Stop() {
}
func (self *JSRepl) parseInput(code string) {
defer func() {
if r := recover(); r != nil {
fmt.Println("[native] error", r)
}
}()
value, err := self.re.Run(code)
if err != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment