Looking for a Javascript engine, outside of the Webkit
Do pardon the simplicity of the question: mother Google seems not to the have the answer to this one ...
So Java has Rhino, a Javascript engine written in Java. Is there a similarly shaped library out there for processing JavaScript in a Cocoa-touch environment? To be specific开发者_JS百科 - this means not using the UIWebView.
On this (old) page, there’s mention of a bridge between SpiderMonkey (Mozilla’s C-based Javascript engine) and Objective-C. Maybe that’s something to explore?
Besides, isn’t JavascriptCore the iPhone’s javascript engine?
Lastly, perhaps this is what you’re looking for? http://parmanoir.com/Taming_JavascriptCore_within_and_without_WebView
Perhaps the Google V8 JavaScript Engine could be built for iOS? It seems to build on Linux/ARM so iOS (Darwin/ARM), theoretically, couldn't be too far off =)
Webkit is a web browser engine. So, techincally any JavaScript interpreter/compiler is "outside of the Webkit".
V8 is used in Google Chrome (which uses Webkit) and Node.js, SquirrelFish Extreme is used in Safari (which uses Webkit), SpiderMonkey for Mozilla Firefox, and Chakra for IE9. Take your pick.
精彩评论