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); }
public void Init() { context = new JSContext(); context.BindManagedRuntime(); }
public void Init() { context = new JSContext (); context.BindManagedRuntime (); }