/// <summary> /// Creates a new JavaScript SyntaxError 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 CreateSyntaxError(JavaScriptValue message) { JavaScriptValue reference; Native.ThrowIfError(Native.JsCreateSyntaxError(message, out reference)); return(reference); }