Пример #1
0
        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);
        }
Пример #2
0
 private static void SendDebugMessage(IntPtr pAgent, StdString.Ptr pContent)
 {
     V8ProxyHelpers.GetHostObject <V8DebugAgent>(pAgent).SendMessage(StdString.GetValue(pContent));
 }
Пример #3
0
 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))));
 }
Пример #4
0
 private static void ScheduleInvalidOperationException(StdString.Ptr pMessage)
 {
     Debug.Assert(ScheduledException == null);
     ScheduledException = new InvalidOperationException(StdString.GetValue(pMessage));
 }