private static void ScheduleScriptInterruptedException(StdString.Ptr pEngineName, StdString.Ptr pMessage, StdString.Ptr pStackTrace, bool isFatal, bool executionStarted, V8Value.Ptr pScriptException, V8Value.Ptr pInnerException) { Debug.Assert(ScheduledException == null); var scriptException = ScriptEngine.Current?.MarshalToHost(V8Value.Get(pScriptException), false); var innerException = V8ProxyHelpers.MarshalExceptionToHost(V8Value.Get(pInnerException)); ScheduledException = new ScriptInterruptedException(StdString.GetValue(pEngineName), StdString.GetValue(pMessage), StdString.GetValue(pStackTrace), 0, isFatal, executionStarted, scriptException, innerException); }
private static void SendDebugMessage(IntPtr pAgent, StdString.Ptr pContent) { V8ProxyHelpers.GetHostObject <V8DebugAgent>(pAgent).SendMessage(StdString.GetValue(pContent)); }
private static IntPtr CreateDebugAgent(StdString.Ptr pName, StdString.Ptr pVersion, int port, bool remote, V8DebugCallback.Handle hCallback) { return(V8ProxyHelpers.AddRefHostObject(new V8DebugAgent(StdString.GetValue(pName), StdString.GetValue(pVersion), port, remote, new V8DebugListenerImpl(hCallback)))); }
private static void ScheduleInvalidOperationException(StdString.Ptr pMessage) { Debug.Assert(ScheduledException == null); ScheduledException = new InvalidOperationException(StdString.GetValue(pMessage)); }