private void InitializeJSCore()
        {
            _context = new JSContext();

            _context.BindManagedRuntime();
            //we do not need this any more eval() is support now
            //_nativeInjectHMRUpdate = new JSFunction(_context, "nativeInjectHMRUpdate", nativeInjectHMRUpdate);
            //_context.GlobalObject.SetProperty("nativeInjectHMRUpdate", _nativeInjectHMRUpdate);

            _nativeLoggingHook = new JSFunction(_context, "nativeLoggingHook", nativeLoggingHook);
            _context.GlobalObject.SetProperty("nativeLoggingHook", _nativeLoggingHook);
        }
예제 #2
0
 public void Init()
 {
     context = new JSContext();
     context.BindManagedRuntime();
 }
예제 #3
0
 public void Init()
 {
     context = new JSContext ();
     context.BindManagedRuntime ();
 }