Пример #1
0
 internal static extern JavaScriptErrorCode JsRunSerializedScriptWithCallback(JavaScriptSerializedScriptLoadSourceCallback scriptLoadCallback,
                                                                              JavaScriptSerializedScriptUnloadCallback scriptUnloadCallback, byte[] buffer, JavaScriptSourceContext sourceContext, string sourceUrl, out JavaScriptValue result);
Пример #2
0
 internal static extern JavaScriptErrorCode JsRunScript(string script, JavaScriptSourceContext sourceContext, string sourceUrl, out JavaScriptValue result);
Пример #3
0
 internal static extern JavaScriptErrorCode JsRunSerializedScript(string script, byte[] buffer, JavaScriptSourceContext sourceContext, string sourceUrl, out JavaScriptValue result);
Пример #4
0
 internal static extern JavaScriptErrorCode JsParseSerializedScript(String script, Byte[] buffer, JavaScriptSourceContext sourceContext, String sourceUrl, out JavaScriptValue result);
Пример #5
0
 public static extern JavaScriptErrorCode JsParseModuleSource(JavaScriptModuleRecord module, JavaScriptSourceContext sourceContext, byte[] script, uint scriptLength, JavaScriptParseModuleSourceFlags flags, out JavaScriptValue parseException);
Пример #6
0
 internal static extern JavaScriptErrorCode JsParseScriptWithAttributes(String script, JavaScriptSourceContext sourceContext, String sourceUrl, JsParseScriptAttributes parseAttributes, out JavaScriptValue result);
Пример #7
0
 internal static extern JavaScriptErrorCode JsParseScript(String script, JavaScriptSourceContext sourceContext, String sourceUrl, out JavaScriptValue result);
Пример #8
0
 internal static extern JavaScriptErrorCode JsRun(JavaScriptValue script, JavaScriptSourceContext sourceContext, JavaScriptValue sourceUrl, JavaScriptParseScriptAttributes parseAttributes, out JavaScriptValue result);
Пример #9
0
 /// <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>
 /// <param name="sourceContext">
 ///     A cookie identifying the script that can be used by script contexts that have debugging enabled.
 /// </param>
 /// <param name="sourceName">The location the script came from.</param>
 /// <returns>The result of the script, if any.</returns>
 public static JavaScriptValue RunScript(String script, Byte[] buffer, JavaScriptSourceContext sourceContext, String sourceName)
 {
     Native.ThrowIfError(Native.JsRunSerializedScript(script, buffer, sourceContext, sourceName, out JavaScriptValue result));
     return(result);
 }
Пример #10
0
 /// <summary>
 ///     Parses a script and returns a <c>Function</c> representing the script.
 /// </summary>
 /// <remarks>
 ///     Requires an active script context.
 /// </remarks>
 /// <param name="script">The script to parse.</param>
 /// <param name="sourceContext">
 ///     A cookie identifying the script that can be used by script contexts that have debugging enabled.
 /// </param>
 /// <param name="sourceName">The location the script came from.</param>
 /// <returns>A <c>Function</c> representing the script code.</returns>
 public static JavaScriptValue ParseScript(String script, JavaScriptSourceContext sourceContext, String sourceName)
 {
     Native.ThrowIfError(Native.JsParseScript(script, sourceContext, sourceName, out JavaScriptValue result));
     return(result);
 }