Skip to content

Commit

Permalink
update compat data tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Jun 5, 2021
1 parent e7e81d8 commit 07ca565
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/core-js/modules/es.typed-array.sort.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
'use strict';
/* eslint-disable es/no-typed-arrays -- required for testing */
var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
var global = require('../internals/global');
var fails = require('../internals/fails');
Expand Down
5 changes: 5 additions & 0 deletions tests/compat/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -1065,6 +1065,11 @@ GLOBAL.tests = {
return Int8Array.prototype.some;
}],
'es.typed-array.sort': [ARRAY_BUFFER_VIEWS_SUPPORT, function () {
try {
new Uint16Array(1).sort(null);
new Uint16Array(1).sort({});
return false;
} catch (error) { /* empty */ }
// stable sort
var array = new Uint16Array(516);
var expected = Array(516);
Expand Down

0 comments on commit 07ca565

Please sign in to comment.