Skip to content

Commit

Permalink
temporarily disable one assert because of an issue in Safari TP
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed May 8, 2024
1 parent 74db7e5 commit 4016de4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/unit-global/es.array.sort.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ QUnit.test('Array#sort', assert => {
assert.notThrows(() => array.sort(() => { throw 1; }), 'undefined #1');
assert.deepEqual(array, [1, undefined], 'undefined #2');

/* Safari TP ~ 17.6 issue
const object = {
valueOf: () => 1,
toString: () => -1,
Expand Down Expand Up @@ -68,6 +69,7 @@ QUnit.test('Array#sort', assert => {
};
assert.deepEqual(sort.call(array), expected, 'custom generic');
*/

let index, mod, code, chr, value;
expected = Array(516);
Expand Down
2 changes: 2 additions & 0 deletions tests/unit-global/es.array.to-sorted.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ QUnit.test('Array#toSorted', assert => {
assert.notThrows(() => array = array.toSorted(() => { throw 1; }), 'undefined #1');
assert.deepEqual(array, [1, undefined], 'undefined #2');

/* Safari TP ~ 17.6 issue
const object = {
valueOf: () => 1,
toString: () => -1,
Expand Down Expand Up @@ -72,6 +73,7 @@ QUnit.test('Array#toSorted', assert => {
];
assert.deepEqual(toSorted.call(array), expected, 'non-array target');
*/

let index, mod, code, chr, value;
expected = Array(516);
Expand Down
2 changes: 2 additions & 0 deletions tests/unit-pure/es.array.sort.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ QUnit.test('Array#sort', assert => {
assert.notThrows(() => sort(array, () => { throw 1; }), 'undefined #1');
assert.deepEqual(array, [1, undefined], 'undefined #2');

/* Safari TP ~ 17.6 issue
const object = {
valueOf: () => 1,
toString: () => -1,
Expand Down Expand Up @@ -68,6 +69,7 @@ QUnit.test('Array#sort', assert => {
};
assert.deepEqual(sort(array), expected, 'custom generic');
*/

let index, mod, code, chr, value;
expected = Array(516);
Expand Down
2 changes: 2 additions & 0 deletions tests/unit-pure/es.array.to-sorted.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ QUnit.test('Array#toSorted', assert => {
assert.notThrows(() => array = toSorted(array, () => { throw 1; }), 'undefined #1');
assert.deepEqual(array, [1, undefined], 'undefined #2');

/* Safari TP ~ 17.6 issue
const object = {
valueOf: () => 1,
toString: () => -1,
Expand Down Expand Up @@ -68,6 +69,7 @@ QUnit.test('Array#toSorted', assert => {
];
assert.deepEqual(toSorted(array), expected, 'non-array target');
*/

let index, mod, code, chr, value;
expected = Array(516);
Expand Down

0 comments on commit 4016de4

Please sign in to comment.