Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2022/thisBigIntValue.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var callBound = require('call-b ind/callBound');3 var callBound = require('call-bound'); 4 4 5 5 var $SyntaxError = require('es-errors/syntax'); 6 6 var $bigIntValueOf = callBound('BigInt.prototype.valueOf', true); 7 7 8 var Type = require('./Type');9 10 8 // https://262.ecma-international.org/11.0/#sec-thisbigintvalue 11 9 12 10 module.exports = function thisBigIntValue(value) { 13 var type = Type(value); 14 if (type === 'BigInt') { 11 if (typeof value === 'bigint') { 15 12 return value; 16 13 }
Note:
See TracChangeset
for help on using the changeset viewer.