Add defer rescued back in
This commit is contained in:
		| @@ -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 { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user