Update checked-in dependencies
This commit is contained in:
parent
1afca056e3
commit
6989ba7bd2
3942 changed files with 55190 additions and 132206 deletions
6
node_modules/es-abstract/2018/OrdinaryToPrimitive.js
generated
vendored
6
node_modules/es-abstract/2018/OrdinaryToPrimitive.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 Call = require('./Call');
|
||||
var Get = require('./Get');
|
||||
|
|
@ -17,7 +15,7 @@ module.exports = function OrdinaryToPrimitive(O, hint) {
|
|||
if (Type(O) !== 'Object') {
|
||||
throw new $TypeError('Assertion failed: Type(O) is not Object');
|
||||
}
|
||||
if (/* Type(hint) !== 'String' || */ hint !== 'string' && hint !== 'number') {
|
||||
if (/* typeof hint !== 'string' || */ hint !== 'string' && hint !== 'number') {
|
||||
throw new $TypeError('Assertion failed: `hint` must be "string" or "number"');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue