Update checked-in dependencies
This commit is contained in:
parent
1afca056e3
commit
6989ba7bd2
3942 changed files with 55190 additions and 132206 deletions
10
node_modules/es-abstract/2018/IsStringPrefix.js
generated
vendored
10
node_modules/es-abstract/2018/IsStringPrefix.js
generated
vendored
|
|
@ -1,8 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
var GetIntrinsic = require('get-intrinsic');
|
||||
|
||||
var $TypeError = GetIntrinsic('%TypeError%');
|
||||
var $TypeError = require('es-errors/type');
|
||||
|
||||
var isPrefixOf = require('../helpers/isPrefixOf');
|
||||
|
||||
|
|
@ -10,16 +8,14 @@ var isPrefixOf = require('../helpers/isPrefixOf');
|
|||
|
||||
// var $charAt = callBound('String.prototype.charAt');
|
||||
|
||||
var Type = require('./Type');
|
||||
|
||||
// https://262.ecma-international.org/9.0/#sec-isstringprefix
|
||||
|
||||
module.exports = function IsStringPrefix(p, q) {
|
||||
if (Type(p) !== 'String') {
|
||||
if (typeof p !== 'string') {
|
||||
throw new $TypeError('Assertion failed: "p" must be a String');
|
||||
}
|
||||
|
||||
if (Type(q) !== 'String') {
|
||||
if (typeof q !== 'string') {
|
||||
throw new $TypeError('Assertion failed: "q" must be a String');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue