Skip to content

Commit

Permalink
add compat data tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Oct 18, 2021
1 parent 97a766b commit 2daae48
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tests/compat/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -1219,6 +1219,18 @@ GLOBAL.tests = {
'esnext.array.unique-by': function () {
return [].uniqueBy;
},
'esnext.array.with-at': function () {
return [].withAt;
},
'esnext.array.with-reversed': function () {
return [].withReversed;
},
'esnext.array.with-sorted': function () {
return [].withSorted;
},
'esnext.array.with-spliced': function () {
return [].withSpliced;
},
'esnext.async-iterator.constructor': function () {
return typeof AsyncIterator == 'function';
},
Expand Down Expand Up @@ -1494,6 +1506,18 @@ GLOBAL.tests = {
'esnext.typed-array.unique-by': function () {
return Int8Array.prototype.uniqueBy;
},
'esnext.typed-array.with-at': function () {
return Int8Array.prototype.withAt;
},
'esnext.typed-array.with-reversed': function () {
return Int8Array.prototype.withReversed;
},
'esnext.typed-array.with-sorted': function () {
return Int8Array.prototype.withSorted;
},
'esnext.typed-array.with-spliced': function () {
return Int8Array.prototype.withSpliced;
},
'esnext.weak-map.delete-all': function () {
return WeakMap.prototype.deleteAll;
},
Expand Down

0 comments on commit 2daae48

Please sign in to comment.