Update checked-in dependencies
This commit is contained in:
parent
1afca056e3
commit
6989ba7bd2
3942 changed files with 55190 additions and 132206 deletions
7
node_modules/es-abstract/2018/SetFunctionLength.js
generated
vendored
7
node_modules/es-abstract/2018/SetFunctionLength.js
generated
vendored
|
|
@ -1,13 +1,10 @@
|
|||
'use strict';
|
||||
|
||||
var GetIntrinsic = require('get-intrinsic');
|
||||
|
||||
var $TypeError = GetIntrinsic('%TypeError%');
|
||||
var $TypeError = require('es-errors/type');
|
||||
|
||||
var DefinePropertyOrThrow = require('./DefinePropertyOrThrow');
|
||||
var HasOwnProperty = require('./HasOwnProperty');
|
||||
var IsExtensible = require('./IsExtensible');
|
||||
var Type = require('./Type');
|
||||
|
||||
var isInteger = require('../helpers/isInteger');
|
||||
|
||||
|
|
@ -17,7 +14,7 @@ module.exports = function SetFunctionLength(F, length) {
|
|||
if (typeof F !== 'function' || !IsExtensible(F) || HasOwnProperty(F, 'length')) {
|
||||
throw new $TypeError('Assertion failed: `F` must be an extensible function and lack an own `length` property');
|
||||
}
|
||||
if (Type(length) !== 'Number') {
|
||||
if (typeof length !== 'number') {
|
||||
throw new $TypeError('Assertion failed: `length` must be a Number');
|
||||
}
|
||||
if (length < 0 || !isInteger(length)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue