Native interfaces.
예제 #1
0
 /// <summary>
 /// Starts profiling in the current context.
 /// </summary>
 /// <remarks>
 /// Requires an active script context.
 /// </remarks>
 /// <param name="callback">The profiling callback to use.</param>
 /// <param name="eventMask">The profiling events to callback with.</param>
 /// <param name="context">A context to pass to the profiling callback.</param>
 public static void StartProfiling(Native.IActiveScriptProfilerCallback callback, Native.ProfilerEventMask eventMask, int context)
 {
     Native.ThrowIfError(Native.JsStartProfiling(callback, eventMask, context));
 }
예제 #2
0
 /// <summary>
 /// Creates a debug script context for running scripts.
 /// </summary>
 /// <remarks>
 /// Each script context has its own global object that is isolated from all other script 
 /// contexts.
 /// </remarks>
 /// <param name="debugApplication">The debug application to use.</param>
 /// <returns>The created script context.</returns>
 public JavaScriptContext CreateContext(Native.IDebugApplication32 debugApplication)
 {
     JavaScriptContext reference;
     if (Environment.Is64BitProcess)
     {
         throw new InvalidOperationException();
     }
     Native.ThrowIfError(Native.JsCreateContext(this, debugApplication, out reference));
     return reference;
 }
예제 #3
0
 /// <summary>
 /// Starts debugging in the context.
 /// </summary>
 /// <param name="debugApplication">The debug application to use for debugging.</param>
 public static void StartDebugging(Native.IDebugApplication32 debugApplication)
 {
     if (Environment.Is64BitProcess)
     {
         throw new InvalidOperationException();
     }
     Native.ThrowIfError(Native.JsStartDebugging(debugApplication));
 }