Mocha icon indicating copy to clipboard operation
Mocha copied to clipboard

Why not use the built in JavaScriptCore framework on iOS? + iOS BridgeSupport

Open jtreanor opened this issue 9 years ago • 3 comments

I just found this project yesterday and I find it fascinating, in particular the Mocha Interpreter is awesome 😃. I am starting to get my head around it but I have some iOS related questions.

Why is it that there is a JavaScriptCore binary bundled with the project and it doesn't use the build in framework on iOS (7+)?

Also, the usage of BridgeSupport to load OS X frameworks is really cool. Do you think it would be possible to have similar capabilities for iOS frameworks by generating the necessary files with gen_bridge_metadata?

Cheers, James

jtreanor avatar May 06 '15 21:05 jtreanor

JavaScriptCore isn't included in the 2.0 branch of Mocha, which is a new and improved rewrite and seems to be the one being maintained currently.

afedor avatar May 07 '15 02:05 afedor

Great, thanks @afedor. I see that now :smile:

jtreanor avatar May 07 '15 08:05 jtreanor

Yes, the 1.0 (master) branch is receiving bug fixes, but feature work is currently on the 2.0 branch. Also, the reason for not using the JavaScriptCore from iOS is because it didn't exist prior to iOS 7 (Mocha at one point supported back to 5.0.)

logancollins avatar May 07 '15 20:05 logancollins