src/third_party/mozjs/extract/js/src/builtin/intl/RelativeTimeFormat.js
/**
 * Returns a String value representing the written form of a relative date
 * formatted according to the effective locale and the formatting options
 * of this RelativeTimeFormat object.
 *
 * Spec: ECMAScript 402 API, RelativeTImeFormat, 1.4.3.
 */
Returns a String value representing the written form of a relative date
formatted according to the effective locale and the formatting options
of this RelativeTimeFormat object.


Returns a String value representing the written form of a relative date formatted according to the effective locale and the formatting options of this RelativeTimeFormat object .
function Intl_RelativeTimeFormat_format(value, unit) {
    let relativeTimeFormat = this;
    if (!IsObject(relativeTimeFormat) ||
        (relativeTimeFormat = intl_GuardToRelativeTimeFormat(relativeTimeFormat)) === null)
    {
        return callFunction(intl_CallRelativeTimeFormatMethodIfWrapped, this, value, unit,
                            "Intl_RelativeTimeFormat_format");
    }
    let t = ToNumber(value);
    let u = ToString(unit);
    var internals = getRelativeTimeFormatInternals(relativeTimeFormat);
    return intl_FormatRelativeTime(relativeTimeFormat, t, u, internals.numeric,
                                   false);
}
function Intl_RelativeTimeFormat_format ( value , unit ) { let relativeTimeFormat = this ; if ( ! IsObject ( relativeTimeFormat ) || ( relativeTimeFormat = intl_GuardToRelativeTimeFormat ( relativeTimeFormat ) ) === null ) { return callFunction ( intl_CallRelativeTimeFormatMethodIfWrapped , this , value , unit , "Intl_RelativeTimeFormat_format" ) ; } let t = ToNumber ( value ) ; let u = ToString ( unit ) ; var internals = getRelativeTimeFormatInternals ( relativeTimeFormat ) ; return intl_FormatRelativeTime ( relativeTimeFormat , t , u , internals . numeric , false ) ; }
Returns a String value representing the written form of a relative date
 formatted according to the effective locale and the formatting options
 of this RelativeTimeFormat object.
Returns a String value representing the written form of a relative date formatted according to the effective locale and the formatting options of this RelativeTimeFormat object .
// Step 1. // Step 2. // Step 3. // Step 4. // Ensure the RelativeTimeFormat internals are resolved. // Step 5.