Update checked-in dependencies
This commit is contained in:
parent
1afca056e3
commit
6989ba7bd2
3942 changed files with 55190 additions and 132206 deletions
9
node_modules/es-abstract/2020/StringCreate.js
generated
vendored
9
node_modules/es-abstract/2020/StringCreate.js
generated
vendored
|
|
@ -2,20 +2,19 @@
|
|||
|
||||
var GetIntrinsic = require('get-intrinsic');
|
||||
|
||||
var $Object = GetIntrinsic('%Object%');
|
||||
var $Object = require('es-object-atoms');
|
||||
var $StringPrototype = GetIntrinsic('%String.prototype%');
|
||||
var $SyntaxError = GetIntrinsic('%SyntaxError%');
|
||||
var $TypeError = GetIntrinsic('%TypeError%');
|
||||
var $SyntaxError = require('es-errors/syntax');
|
||||
var $TypeError = require('es-errors/type');
|
||||
|
||||
var DefinePropertyOrThrow = require('./DefinePropertyOrThrow');
|
||||
var Type = require('./Type');
|
||||
|
||||
var setProto = require('../helpers/setProto');
|
||||
|
||||
// https://262.ecma-international.org/6.0/#sec-stringcreate
|
||||
|
||||
module.exports = function StringCreate(value, prototype) {
|
||||
if (Type(value) !== 'String') {
|
||||
if (typeof value !== 'string') {
|
||||
throw new $TypeError('Assertion failed: `S` must be a String');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue