public override Statistics GetStatistics() { var statistics = new Statistics(); V8SplitProxyNative.InvokeNoThrow(instance => instance.V8UnitTestSupport_GetStatistics(out statistics.IsolateCount, out statistics.ContextCount)); return(statistics); }
public void ReleaseEntity() { var tempHandle = handle; if (tempHandle != V8Entity.Handle.Empty) { V8SplitProxyNative.InvokeNoThrow(instance => instance.V8Entity_Release(tempHandle)); } }
public static void Destroy(ref V8EntityHolder holder) { var tempHandle = holder.handle; if (tempHandle != V8Entity.Handle.Empty) { V8SplitProxyNative.InvokeNoThrow(instance => instance.V8Entity_DestroyHandle(tempHandle)); } if (holder.registered) { V8Proxy.OnEntityHolderDestroyed(); } holder = new V8EntityHolder(holder.name); }
public void Invoke() { V8SplitProxyNative.InvokeNoThrow(instance => instance.NativeCallback_Invoke(Handle)); }
private static void ScheduleHostException(Exception exception) { V8SplitProxyNative.InvokeNoThrow(instance => instance.HostException_Schedule(exception.GetBaseException().Message, ScriptEngine.Current?.MarshalToScript(exception))); }
private static void ScheduleHostException(IntPtr pObject, Exception exception) { V8SplitProxyNative.InvokeNoThrow(instance => instance.HostException_Schedule(exception.GetBaseException().Message, V8ProxyHelpers.MarshalExceptionToScript(pObject, exception))); }
public override UIntPtr GetNativeDigest(string value) { return(V8SplitProxyNative.InvokeNoThrow(instance => instance.V8UnitTestSupport_GetTextDigest(value))); }
public void DisconnectClient() { V8SplitProxyNative.InvokeNoThrow(instance => instance.V8DebugCallback_DisconnectClient(Handle)); }
public void SendCommand(string command) { V8SplitProxyNative.InvokeNoThrow(instance => instance.V8DebugCallback_SendCommand(Handle, command)); }