robertkrimen / otto

A JavaScript interpreter in Go (golang)
http://godoc.org/github.com/robertkrimen/otto
MIT License
8.01k stars 584 forks source link

does it use v8 under the hood? anything cgo? #523

Closed sprappcom closed 3 months ago

sprappcom commented 3 months ago
  1. saw this: https://github.com/robertkrimen/otto/issues/54 would like to allow others to run js on my server too. how much of a "vm" "isolate" is v8 being used or something? if the js code crash, will it take down the golang program too?

  2. how does this compare with github.com/rogchap/v8go?

trying to figure out what's the best way forward to allow others to run js on my server that's all.

stevenh commented 3 months ago

This is for issues not questions, please use something like stackoverflow for questions.

That said:

  1. No this is native go, if the JS is broken it shouldn't take down the program, but to ensure this is case you can always use a panic recovery.
  2. I can't comment as I've not used v8go