Update checked-in dependencies

This commit is contained in:
github-actions[bot] 2021-07-27 16:54:26 +00:00
parent 6b0d45a5c6
commit cc1adb825a
4247 changed files with 144820 additions and 149530 deletions

View file

@ -2,7 +2,7 @@
var has = require('has');
var GetIntrinsic = require('../GetIntrinsic');
var GetIntrinsic = require('get-intrinsic');
var $TypeError = GetIntrinsic('%TypeError%');
@ -10,7 +10,7 @@ var Type = require('./Type');
var ToBoolean = require('./ToBoolean');
var IsCallable = require('./IsCallable');
// https://ecma-international.org/ecma-262/5.1/#sec-8.10.5
// https://262.ecma-international.org/5.1/#sec-8.10.5
module.exports = function ToPropertyDescriptor(Obj) {
if (Type(Obj) !== 'Object') {
@ -33,7 +33,7 @@ module.exports = function ToPropertyDescriptor(Obj) {
if (has(Obj, 'get')) {
var getter = Obj.get;
if (typeof getter !== 'undefined' && !IsCallable(getter)) {
throw new TypeError('getter must be a function');
throw new $TypeError('getter must be a function');
}
desc['[[Get]]'] = getter;
}