JsConstructObject() private method

private JsConstructObject ( JavaScriptValue function, JavaScriptValue arguments, ushort argumentCount, JavaScriptValue &result ) : JavaScriptErrorCode
function JavaScriptValue
arguments JavaScriptValue
argumentCount ushort
result JavaScriptValue
return JavaScriptErrorCode
        /// <summary>
        /// Invokes a function as a constructor.
        /// </summary>
        /// <remarks>
        /// Requires an active script context.
        /// </remarks>
        /// <param name="arguments">The arguments to the call.</param>
        /// <returns>The <c>Value</c> returned from the function invocation.</returns>
        public JavaScriptValue ConstructObject(params JavaScriptValue[] arguments)
        {
            JavaScriptValue returnReference;

            if (arguments.Length > ushort.MaxValue)
            {
                throw new ArgumentOutOfRangeException("arguments");
            }

            Native.ThrowIfError(Native.JsConstructObject(this, arguments, (ushort)arguments.Length, out returnReference));
            return(returnReference);
        }