refactor start
This commit is contained in:
parent
bd49791e06
commit
e46d25f0b7
16699 changed files with 2 additions and 1484887 deletions
16
home/ags/node_modules/es-abstract/2021/BigInt/toString.js
generated
vendored
16
home/ags/node_modules/es-abstract/2021/BigInt/toString.js
generated
vendored
|
|
@ -1,16 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
var GetIntrinsic = require('get-intrinsic');
|
||||
|
||||
var $String = GetIntrinsic('%String%');
|
||||
var $TypeError = require('es-errors/type');
|
||||
|
||||
// https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-tostring
|
||||
|
||||
module.exports = function BigIntToString(x) {
|
||||
if (typeof x !== 'bigint') {
|
||||
throw new $TypeError('Assertion failed: `x` must be a BigInt');
|
||||
}
|
||||
|
||||
return $String(x);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue