blob: f0d2808737ac6c853571ca68c94f57f7ee4cb59b [file] [log] [blame]
Leo Repp58b9f112021-11-22 11:57:47 +01001'use strict';
2
3var IsUnclampedIntegerElementType = require('./IsUnclampedIntegerElementType');
4var IsBigIntElementType = require('./IsBigIntElementType');
5
6// https://262.ecma-international.org/11.0/#sec-isnotearconfiguration
7
8module.exports = function IsNoTearConfiguration(type, order) {
9 if (IsUnclampedIntegerElementType(type)) {
10 return true;
11 }
12 if (IsBigIntElementType(type) && order !== 'Init' && order !== 'Unordered') {
13 return true;
14 }
15 return false;
16};