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/2020/NumberBitwiseOp.js
generated
vendored
7
node_modules/es-abstract/2020/NumberBitwiseOp.js
generated
vendored
|
|
@ -1,12 +1,9 @@
|
|||
'use strict';
|
||||
|
||||
var GetIntrinsic = require('get-intrinsic');
|
||||
|
||||
var $TypeError = GetIntrinsic('%TypeError%');
|
||||
var $TypeError = require('es-errors/type');
|
||||
|
||||
var ToInt32 = require('./ToInt32');
|
||||
var ToUint32 = require('./ToUint32');
|
||||
var Type = require('./Type');
|
||||
|
||||
// https://262.ecma-international.org/11.0/#sec-numberbitwiseop
|
||||
|
||||
|
|
@ -14,7 +11,7 @@ module.exports = function NumberBitwiseOp(op, x, y) {
|
|||
if (op !== '&' && op !== '|' && op !== '^') {
|
||||
throw new $TypeError('Assertion failed: `op` must be `&`, `|`, or `^`');
|
||||
}
|
||||
if (Type(x) !== 'Number' || Type(y) !== 'Number') {
|
||||
if (typeof x !== 'number' || typeof y !== 'number') {
|
||||
throw new $TypeError('Assertion failed: `x` and `y` arguments must be Numbers');
|
||||
}
|
||||
var lnum = ToInt32(x);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue