What javascript engine used inside javafx?

后端 未结 2 671
一个人的身影
一个人的身影 2020-12-29 11:01

WebView has built-in javascript engine. What engine is used for it? Is it the same for openjdk and oracle jdk? May it be used separately from WebView, just as JSR 223 engine

2条回答
  •  时光说笑
    2020-12-29 11:37

    Update

    Since OP is more concerned about JavaFX WebView, it uses JavaScriptCore. Please read JewelSea's answer for a better understanding.

    JavaFX Webkit does not use Nashorn, it uses JavaScriptCore

    Oracle Nashorn is the JavaScript engine in Java 8. Until Java 7, the JavaScript engine used was based on Mozilla Rhino.

    Yes, it is same for Oracle JDK and OpenJDK.

    You can find more information on Nashorn on the Oracle Site.

提交回复
热议问题