PIbd-22_Kaznacheeva.E.K_Int.../lab2/node_modules/es-abstract/2021/IsNoTearConfiguration.js

17 lines
467 B
JavaScript
Raw Normal View History

2023-11-24 14:53:57 +04:00
'use strict';
var IsUnclampedIntegerElementType = require('./IsUnclampedIntegerElementType');
var IsBigIntElementType = require('./IsBigIntElementType');
// https://262.ecma-international.org/11.0/#sec-isnotearconfiguration
module.exports = function IsNoTearConfiguration(type, order) {
if (IsUnclampedIntegerElementType(type)) {
return true;
}
if (IsBigIntElementType(type) && order !== 'Init' && order !== 'Unordered') {
return true;
}
return false;
};