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