So:
1. Can we have a demo that how to obfuscate JSB codes before GDC and Devcon Beijing?
2. Another topic, is there any chance that we can compile to javascript bytecode on development environment, like lua, then distribute the javascript bytecode in .ipa & .apk. This would be much safer than obfuscation.
For example, google v8 has two major phases to run js source, (well, v8 is using JIT)
js_compiled = Script::Compile(js_source);
js_compiled->Run()
And SpiderMonkey also has 2 phases:
JSScript* script = JS::Compile(..., js_source);
JS_ExecuteScript(JSContext*, JSObject, script, jsval)
I'm not sure if JSScript* is the very object that contents the bytecode. If do, can we serialise JSContext *cx, JSObject global, and JSScript to storage, pack them into apps, then recover the context, run the bytecode in runtime?