JsParseSerializedScript() private method

private JsParseSerializedScript ( string script, byte buffer, JsSourceContext sourceContext, string sourceUrl, IeJsValue &result ) : JsErrorCode
script string
buffer byte
sourceContext JsSourceContext
sourceUrl string
result IeJsValue
return JsErrorCode
Example #1
0
        /// <summary>
        /// Parses a serialized 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="buffer">The serialized script</param>
        /// <param name="sourceContext">The 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 <c>Function</c> representing the script code</returns>
        public static IeJsValue ParseScript(string script, byte[] buffer, JsSourceContext sourceContext, string sourceName)
        {
            IeJsValue result;

            IeJsErrorHelpers.ThrowIfError(IeNativeMethods.JsParseSerializedScript(script, buffer, sourceContext, sourceName, out result));

            return(result);
        }