Files
bzzz/install/config-ui/node_modules/es-abstract/2022/thisBigIntValue.js
anthonyrawlins c177363a19 Save current BZZZ config-ui state before CHORUS branding update
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-19 00:19:00 +10:00

19 lines
453 B
JavaScript

'use strict';
var callBound = require('call-bound');
var $SyntaxError = require('es-errors/syntax');
var $bigIntValueOf = callBound('BigInt.prototype.valueOf', true);
// https://262.ecma-international.org/11.0/#sec-thisbigintvalue
module.exports = function thisBigIntValue(value) {
if (typeof value === 'bigint') {
return value;
}
if (!$bigIntValueOf) {
throw new $SyntaxError('BigInt is not supported');
}
return $bigIntValueOf(value);
};