How to turn the V8 compiled javascript into an EXE?

前端 未结 4 1413
面向向阳花
面向向阳花 2021-01-11 15:05

I know that google\'s v8 compiles javascript into native machine (binary if I understand correctly) code.
Is there a way to take the output and turn it into a exe?

4条回答
  •  感动是毒
    2021-01-11 15:36

    Javascript cannot be compiled just once. The language has eval which is pretty widely used. (for JSON for instance) You need to carry around the JIT, and the whole runtime.

    JIT here is only an optimization, not the way to get rid of the compiler/interpreter.

提交回复
热议问题