ags
This commit is contained in:
parent
eddf7cecb8
commit
aea798d119
16631 changed files with 1480363 additions and 257 deletions
14
home/ags/node_modules/es-abstract/2021/Number/bitwiseOR.js
generated
vendored
Normal file
14
home/ags/node_modules/es-abstract/2021/Number/bitwiseOR.js
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
'use strict';
|
||||
|
||||
var $TypeError = require('es-errors/type');
|
||||
|
||||
var NumberBitwiseOp = require('../NumberBitwiseOp');
|
||||
|
||||
// https://262.ecma-international.org/11.0/#sec-numeric-types-number-bitwiseOR
|
||||
|
||||
module.exports = function NumberBitwiseOR(x, y) {
|
||||
if (typeof x !== 'number' || typeof y !== 'number') {
|
||||
throw new $TypeError('Assertion failed: `x` and `y` arguments must be Numbers');
|
||||
}
|
||||
return NumberBitwiseOp('|', x, y);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue