Skip to content

Commit

Permalink
update some links
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Jun 25, 2023
1 parent 667a372 commit 8b8430c
Show file tree
Hide file tree
Showing 17 changed files with 16 additions and 17 deletions.
2 changes: 1 addition & 1 deletion packages/core-js/modules/es.aggregate-error.cause.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var FORCED = !fails(function () {
return $AggregateError([1], AGGREGATE_ERROR, { cause: 7 }).cause !== 7;
});

// https://github.com/tc39/proposal-error-cause
// https://tc39.es/ecma262/#sec-aggregate-error
$({ global: true, constructor: true, arity: 2, forced: FORCED }, {
AggregateError: wrapErrorConstructorWithCause(AGGREGATE_ERROR, function (init) {
// eslint-disable-next-line no-unused-vars -- required for functions `.length`
Expand Down
2 changes: 1 addition & 1 deletion packages/core-js/modules/es.array.at.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');
var addToUnscopables = require('../internals/add-to-unscopables');

// `Array.prototype.at` method
// https://github.com/tc39/proposal-relative-indexing-method
// https://tc39.es/ecma262/#sec-array.prototype.at
$({ target: 'Array', proto: true }, {
at: function at(index) {
var O = toObject(this);
Expand Down
2 changes: 1 addition & 1 deletion packages/core-js/modules/es.array.find-last-index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var $findLastIndex = require('../internals/array-iteration-from-last').findLastI
var addToUnscopables = require('../internals/add-to-unscopables');

// `Array.prototype.findLastIndex` method
// https://github.com/tc39/proposal-array-find-from-last
// https://tc39.es/ecma262/#sec-array.prototype.findlastindex
$({ target: 'Array', proto: true }, {
findLastIndex: function findLastIndex(callbackfn /* , that = undefined */) {
return $findLastIndex(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
Expand Down
2 changes: 1 addition & 1 deletion packages/core-js/modules/es.array.find-last.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var $findLast = require('../internals/array-iteration-from-last').findLast;
var addToUnscopables = require('../internals/add-to-unscopables');

// `Array.prototype.findLast` method
// https://github.com/tc39/proposal-array-find-from-last
// https://tc39.es/ecma262/#sec-array.prototype.findlast
$({ target: 'Array', proto: true }, {
findLast: function findLast(callbackfn /* , that = undefined */) {
return $findLast(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
Expand Down
2 changes: 1 addition & 1 deletion packages/core-js/modules/es.array.to-reversed.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var addToUnscopables = require('../internals/add-to-unscopables');
var $Array = Array;

// `Array.prototype.toReversed` method
// https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.toReversed
// https://tc39.es/ecma262/#sec-array.prototype.toreversed
$({ target: 'Array', proto: true }, {
toReversed: function toReversed() {
return arrayToReversed(toIndexedObject(this), $Array);
Expand Down
2 changes: 1 addition & 1 deletion packages/core-js/modules/es.array.to-sorted.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var $Array = Array;
var sort = uncurryThis(getVirtual('Array').sort);

// `Array.prototype.toSorted` method
// https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.toSorted
// https://tc39.es/ecma262/#sec-array.prototype.tosorted
$({ target: 'Array', proto: true }, {
toSorted: function toSorted(compareFn) {
if (compareFn !== undefined) aCallable(compareFn);
Expand Down
2 changes: 1 addition & 1 deletion packages/core-js/modules/es.array.to-spliced.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var max = Math.max;
var min = Math.min;

// `Array.prototype.toSpliced` method
// https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.toSpliced
// https://tc39.es/ecma262/#sec-array.prototype.tospliced
$({ target: 'Array', proto: true }, {
toSpliced: function toSpliced(start, deleteCount /* , ...items */) {
var O = toIndexedObject(this);
Expand Down
2 changes: 1 addition & 1 deletion packages/core-js/modules/es.array.with.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var toIndexedObject = require('../internals/to-indexed-object');
var $Array = Array;

// `Array.prototype.with` method
// https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.with
// https://tc39.es/ecma262/#sec-array.prototype.with
$({ target: 'Array', proto: true }, {
'with': function (index, value) {
return arrayWith(toIndexedObject(this), $Array, index, value);
Expand Down
1 change: 0 additions & 1 deletion packages/core-js/modules/es.error.cause.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
};

// https://tc39.es/ecma262/#sec-nativeerror
// https://github.com/tc39/proposal-error-cause
exportGlobalErrorCauseWrapper('Error', function (init) {
return function Error(message) { return apply(init, this, arguments); };
});
Expand Down
2 changes: 1 addition & 1 deletion packages/core-js/modules/es.object.has-own.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var $ = require('../internals/export');
var hasOwn = require('../internals/has-own-property');

// `Object.hasOwn` method
// https://github.com/tc39/proposal-accessible-object-hasownproperty
// https://tc39.es/ecma262/#sec-object.hasown
$({ target: 'Object', stat: true }, {
hasOwn: hasOwn
});
2 changes: 1 addition & 1 deletion packages/core-js/modules/es.string.at-alternative.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var FORCED = fails(function () {
});

// `String.prototype.at` method
// https://github.com/tc39/proposal-relative-indexing-method
// https://tc39.es/ecma262/#sec-string.prototype.at
$({ target: 'String', proto: true, forced: FORCED }, {
at: function at(index) {
var S = toString(requireObjectCoercible(this));
Expand Down
2 changes: 1 addition & 1 deletion packages/core-js/modules/es.typed-array.at.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;

// `%TypedArray%.prototype.at` method
// https://github.com/tc39/proposal-relative-indexing-method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.at
exportTypedArrayMethod('at', function at(index) {
var O = aTypedArray(this);
var len = lengthOfArrayLike(O);
Expand Down
2 changes: 1 addition & 1 deletion packages/core-js/modules/es.typed-array.find-last-index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;

// `%TypedArray%.prototype.findLastIndex` method
// https://github.com/tc39/proposal-array-find-from-last
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.findlastindex
exportTypedArrayMethod('findLastIndex', function findLastIndex(predicate /* , thisArg */) {
return $findLastIndex(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
});
2 changes: 1 addition & 1 deletion packages/core-js/modules/es.typed-array.find-last.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;

// `%TypedArray%.prototype.findLast` method
// https://github.com/tc39/proposal-array-find-from-last
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.findlast
exportTypedArrayMethod('findLast', function findLast(predicate /* , thisArg */) {
return $findLast(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
});
2 changes: 1 addition & 1 deletion packages/core-js/modules/es.typed-array.to-reversed.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;

// `%TypedArray%.prototype.toReversed` method
// https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.toReversed
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.toreversed
exportTypedArrayMethod('toReversed', function toReversed() {
return arrayToReversed(aTypedArray(this), getTypedArrayConstructor(this));
});
2 changes: 1 addition & 1 deletion packages/core-js/modules/es.typed-array.to-sorted.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var sort = uncurryThis(ArrayBufferViewCore.TypedArrayPrototype.sort);

// `%TypedArray%.prototype.toSorted` method
// https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.toSorted
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.tosorted
exportTypedArrayMethod('toSorted', function toSorted(compareFn) {
if (compareFn !== undefined) aCallable(compareFn);
var O = aTypedArray(this);
Expand Down
2 changes: 1 addition & 1 deletion packages/core-js/modules/es.typed-array.with.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var PROPER_ORDER = !!function () {
}();

// `%TypedArray%.prototype.with` method
// https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.with
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.with
exportTypedArrayMethod('with', { 'with': function (index, value) {
var O = aTypedArray(this);
var relativeIndex = toIntegerOrInfinity(index);
Expand Down

0 comments on commit 8b8430c

Please sign in to comment.