JsRunSerializedScript() private method

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

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