Can anyone use Mozilla Rhino JS in a WebKit shell?

I get the impression that WebKit is a more general structure into which several JavaScript engines can be connected. Most notably, we have both the Apple JavaScriptCore and the Google V8.

Has anyone tried to connect Mozilla Rhino? If they haven’t, can you tell me some short resources on what is involved? (I’m unlikely to take it upon myself, but I’m interested in how WebKit extension points are structured in this area, just for the sake of curiosity.)

Also, if my understanding of the relationship between WebKit, JavaScriptCore, and V8 is wrong, setting me right there will give a great answer.

+5
source share
1 answer

Ignoring many of the problems associated with supporting multiple js engines in webkit, there is a lot of work to support any js engine.

Most DOM bindings are automatically generated, but the scripts that do this (and do it right) are large, complex, and completely different for each purpose (there are dom bindings in webkit for AO, V8, Objective-C, and gtk). Moreover, the existence of> 2 sets of bindings should be a sign that supporting an additional set of bindings will not be too complicated (mainly time, not mind-f * cking).

JS , - ( script ..). , , , , . , V8 webkit , , -, , spidermonkey, .

+3

All Articles