robertkrimen / otto

A JavaScript interpreter in Go (golang)

Home Page:http://godoc.org/github.com/robertkrimen/otto

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JS VM crashing go

ssharish opened this issue · comments

This is not a bug, more of an ask, since I could not find any relevant information anywhere.

Is it possible to run JS VM as a separate process detached from the GO binary in which it is used? or
Is there a way to not crash GO binary during runtime, due to JS code error, e.g. JS stackoverflow?

Thanks in advance.

As it's running go code you couldn't run it separately, however you could have your app run the vm in a separate process, but hat more a task of your app than this library.

That said do you have a small test which replicates this?

Thanks Steven.