Urara-Blog/node_modules/.pnpm-store/v3/files/47/3a8cd91bb2099cd17b284de31541cef05b0e0334748c92ed1aea940a03537204e3c122cc87a28452911422679d9b6cf6a6799806689848f7b5744afd9ef693
2022-08-14 01:14:53 +08:00

18 lines
427 B
Text

'use strict';
var GetIntrinsic = require('get-intrinsic');
var $String = GetIntrinsic('%String%');
var $TypeError = GetIntrinsic('%TypeError%');
var Type = require('../Type');
// https://262.ecma-international.org/11.0/#sec-numeric-types-number-tostring
module.exports = function NumberToString(x) {
if (Type(x) !== 'Number') {
throw new $TypeError('Assertion failed: `x` must be a Number');
}
return $String(x);
};