Example #1
0
        /// <summary>
        ///     Creates a new JavaScript error object
        /// </summary>
        /// <remarks>
        ///     Requires an active script context.
        /// </remarks>
        /// <param name="message">Message for the error object.</param>
        /// <returns>The new error object.</returns>
        public static JavaScriptValue CreateError(JavaScriptValue message)
        {
            JavaScriptValue reference;

            Native.ThrowIfError(Native.JsCreateError(message, out reference));
            return(reference);
        }