Beispiel #1
0
        public static extern JavaScriptErrorCode JsRunSerializedScriptWithCallback(JavaScriptSerializedScriptLoadSourceCallback scriptLoadCallback,

        JavaScriptSerializedScriptUnloadCallback scriptUnloadCallback, byte[] buffer, JavaScriptSourceContext sourceContext, string sourceUrl, out JavaScriptValue result);
Beispiel #2
0
 public static extern JavaScriptErrorCode JsParseSerializedScript(string script, byte[] buffer, JavaScriptSourceContext sourceContext, string sourceUrl, out JavaScriptValue result);
Beispiel #3
0
 public static extern JavaScriptErrorCode JsRun(JavaScriptValue script, JavaScriptSourceContext sourceContext, JavaScriptValue sourceUrl, JavaScriptRuntimeAttributes parseAttributes, out JavaScriptValue result);
Beispiel #4
0
 public static extern JavaScriptErrorCode JsParseScript(string script, JavaScriptSourceContext sourceContext, string sourceUrl, out JavaScriptValue result);
Beispiel #5
0
 public static extern JavaScriptErrorCode JsParseModuleSource(JavaScriptModuleRecord moduel, JavaScriptSourceContext sourceContext, byte[] script, uint scriptLength, JavaScriptParseModuleSourceFlags flags, out JavaScriptValue parseException);
 /// <summary>
 ///     Runs a serialized script.
 /// </summary>
 /// <remarks>
 ///     Requires an active script context.
 /// </remarks>
 /// <param name="script">The source code of the serialized script.</param>
 /// <param name="buffer">The serialized script.</param>
 /// <returns>The result of the script, if any.</returns>
 public static JavaScriptValue RunScript(string script, byte[] buffer, JavaScriptSourceContext sourceContext)
 {
     return(RunScript(script, buffer, sourceContext, string.Empty));
 }