diff options
Diffstat (limited to 'src/node_modules/es-abstract/2020/IsNoTearConfiguration.js')
-rw-r--r-- | src/node_modules/es-abstract/2020/IsNoTearConfiguration.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/node_modules/es-abstract/2020/IsNoTearConfiguration.js b/src/node_modules/es-abstract/2020/IsNoTearConfiguration.js new file mode 100644 index 0000000..a7c2340 --- /dev/null +++ b/src/node_modules/es-abstract/2020/IsNoTearConfiguration.js @@ -0,0 +1,16 @@ +'use strict'; + +var IsUnclampedIntegerElementType = require('./IsUnclampedIntegerElementType'); +var IsBigIntElementType = require('./IsBigIntElementType'); + +// https://tc39.es/ecma262/2020/#sec-isnotearconfiguration + +module.exports = function IsNoTearConfiguration(type, order) { + if (IsUnclampedIntegerElementType(type)) { + return true; + } + if (IsBigIntElementType(type) && order !== 'Init' && order !== 'Unordered') { + return true; + } + return false; +}; |