We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7e81d8 commit 07ca565Copy full SHA for 07ca565
packages/core-js/modules/es.typed-array.sort.js
@@ -1,5 +1,4 @@
1
'use strict';
2
-/* eslint-disable es/no-typed-arrays -- required for testing */
3
var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
4
var global = require('../internals/global');
5
var fails = require('../internals/fails');
tests/compat/tests.js
@@ -1065,6 +1065,11 @@ GLOBAL.tests = {
1065
return Int8Array.prototype.some;
1066
}],
1067
'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 */ }
1073
// stable sort
1074
var array = new Uint16Array(516);
1075
var expected = Array(516);
0 commit comments