/// <summary>
        ///     Creates a new <c>Object</c>.
        /// </summary>
        /// <remarks>
        ///     Requires an active script context.
        /// </remarks>
        /// <returns>The new <c>Object</c>.</returns>
        public static JavaScriptValue CreateObject()
        {
            JavaScriptValue reference;

            Native.ThrowIfError(Native.JsCreateObject(out reference));
            return(reference);
        }