JsParseScript() private method

private JsParseScript ( string script, JavaScriptSourceContext sourceContext, string sourceUrl, JavaScriptValue &result ) : JavaScriptErrorCode
script string
sourceContext JavaScriptSourceContext
sourceUrl string
result JavaScriptValue
return JavaScriptErrorCode
        /// <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)
        {
            JavaScriptValue result;

            Native.ThrowIfError(Native.JsParseScript(script, sourceContext, sourceName, out result));
            return(result);
        }