Skip to content

Commit 07ca565

Browse files
committed
update compat data tests
1 parent e7e81d8 commit 07ca565

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/core-js/modules/es.typed-array.sort.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
'use strict';
2-
/* eslint-disable es/no-typed-arrays -- required for testing */
32
var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
43
var global = require('../internals/global');
54
var fails = require('../internals/fails');

tests/compat/tests.js

+5
Original file line numberDiff line numberDiff line change
@@ -1065,6 +1065,11 @@ GLOBAL.tests = {
10651065
return Int8Array.prototype.some;
10661066
}],
10671067
'es.typed-array.sort': [ARRAY_BUFFER_VIEWS_SUPPORT, function () {
1068+
try {
1069+
new Uint16Array(1).sort(null);
1070+
new Uint16Array(1).sort({});
1071+
return false;
1072+
} catch (error) { /* empty */ }
10681073
// stable sort
10691074
var array = new Uint16Array(516);
10701075
var expected = Array(516);

0 commit comments

Comments
 (0)