refactor start
This commit is contained in:
parent
bd49791e06
commit
e46d25f0b7
16699 changed files with 2 additions and 1484887 deletions
15
home/ags/node_modules/es-abstract/2015/ToString.js
generated
vendored
15
home/ags/node_modules/es-abstract/2015/ToString.js
generated
vendored
|
|
@ -1,15 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
var GetIntrinsic = require('get-intrinsic');
|
||||
|
||||
var $String = GetIntrinsic('%String%');
|
||||
var $TypeError = require('es-errors/type');
|
||||
|
||||
// https://262.ecma-international.org/6.0/#sec-tostring
|
||||
|
||||
module.exports = function ToString(argument) {
|
||||
if (typeof argument === 'symbol') {
|
||||
throw new $TypeError('Cannot convert a Symbol value to a string');
|
||||
}
|
||||
return $String(argument);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue