mirror of
https://github.com/joelwmale/webhook-action.git
synced 2024-08-25 08:08:00 +00:00
17 lines
472 B
JavaScript
17 lines
472 B
JavaScript
'use strict';
|
|
|
|
var IsUnclampedIntegerElementType = require('./IsUnclampedIntegerElementType');
|
|
var IsBigIntElementType = require('./IsBigIntElementType');
|
|
|
|
// https://ecma-international.org/ecma-262/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;
|
|
};
|