src/third_party/mozjs/extract/js/src/builtin/intl/Collator.js
/**
 * Create function to be cached and returned by Intl.Collator.prototype.compare.
 *
 * Spec: ECMAScript Internationalization API Specification, 10.3.3.1.
 */
Create function to be cached and returned by Intl.Collator.prototype.compare.
Spec: ECMAScript Internationalization API Specification, 10.3.3.1.
Create function to be cached and returned by Intl . Collator . prototype . compare . Spec : ECMAScript Internationalization API Specification 10 . 3 . 3 . 1 .
function createCollatorCompare(collator) {
    return function(x, y) {
        assert(IsObject(collator), "collatorCompareToBind called with non-object");
        assert(intl_GuardToCollator(collator) !== null, "collatorCompareToBind called with non-Collator");
        var X = ToString(x);
        var Y = ToString(y);
        return intl_CompareStrings(collator, X, Y);
    };
}
function createCollatorCompare ( collator ) { return function ( x , y ) { assert ( IsObject ( collator ) , "collatorCompareToBind called with non-object" ) ; assert ( intl_GuardToCollator ( collator ) !== null , "collatorCompareToBind called with non-Collator" ) ; var X = ToString ( x ) ; var Y = ToString ( y ) ; return intl_CompareStrings ( collator , X , Y ) ; } ; }
Create function to be cached and returned by Intl.Collator.prototype.compare.
Create function to be cached and returned by Intl . Collator . prototype . compare .
// This function is not inlined in $Intl_Collator_compare_get to avoid // creating a call-object on each call to $Intl_Collator_compare_get. // Step 1 (implicit). // Step 2. // Steps 3-6 // Step 7.