Update checked-in dependencies
This commit is contained in:
parent
6b0d45a5c6
commit
cc1adb825a
4247 changed files with 144820 additions and 149530 deletions
6
node_modules/es-abstract/2017/ToPropertyDescriptor.js
generated
vendored
6
node_modules/es-abstract/2017/ToPropertyDescriptor.js
generated
vendored
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue