jsc-android-buildscripts
jsc-android-buildscripts copied to clipboard
Is there any way to run JSC from command line?
This seems a bit bizarre, But when I published a version of my app w/ upgraded JSC I ran into some weird timing issues with our app. Essentially my redux store was being blown away and the first person to access it would explode (perhaps a difference in how promises resolve? We do use Bluebird instead of traditional promises... No idea). Very strange and very hard to reproduce.
One crazy Idea I had was to be able to run all my mocha unit tests w/ the version of JSC I am actually deploying with app with. Seems reasonable from a testing perspective, test to as close to the environment if not the same environment as you can.
Do any of you guys have any tips on how I might execute JSC from the command line, something like this perhaps: https://gist.github.com/rosswd/acceded358c664b13174
JSC shell maybe what you want and it is likely the jsc command in your gist reference. Here it is: https://github.com/WebKit/webkit/blob/master/Source/JavaScriptCore/jsc.cpp We disabled this as there are errors from building JSC shell.
AFAIK, JSC shell builtin APIs are much different than formal JSC runtime. E.g. console in undefined.