Update checked-in dependencies
This commit is contained in:
parent
6b0d45a5c6
commit
cc1adb825a
4247 changed files with 144820 additions and 149530 deletions
7
node_modules/es-abstract/2018/NumberToString.js
generated
vendored
7
node_modules/es-abstract/2018/NumberToString.js
generated
vendored
|
|
@ -1,16 +1,17 @@
|
|||
'use strict';
|
||||
|
||||
var GetIntrinsic = require('../GetIntrinsic');
|
||||
var GetIntrinsic = require('get-intrinsic');
|
||||
|
||||
var $String = GetIntrinsic('%String%');
|
||||
var $TypeError = GetIntrinsic('%TypeError%');
|
||||
|
||||
var Type = require('./Type');
|
||||
|
||||
// https://www.ecma-international.org/ecma-262/9.0/#sec-tostring-applied-to-the-number-type
|
||||
// https://262.ecma-international.org/9.0/#sec-tostring-applied-to-the-number-type
|
||||
|
||||
module.exports = function NumberToString(m) {
|
||||
if (Type(m) !== 'Number') {
|
||||
throw new TypeError('Assertion failed: "m" must be a String');
|
||||
throw new $TypeError('Assertion failed: "m" must be a String');
|
||||
}
|
||||
|
||||
return $String(m);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue