diff --git a/2015/ObjectDefineProperties.js b/2015/ObjectDefineProperties.js index 32a1c7ed..f096f1ed 100644 --- a/2015/ObjectDefineProperties.js +++ b/2015/ObjectDefineProperties.js @@ -9,7 +9,7 @@ var ToObject = require('./ToObject'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var forEach = require('../helpers/forEach'); -var getOwnPropertyDescriptor = require('../helpers/getOwnPropertyDescriptor'); +var getOwnPropertyDescriptor = require('gopd'); var OwnPropertyKeys = require('../helpers/OwnPropertyKeys'); var $push = callBound('Array.prototype.push'); diff --git a/2015/OrdinaryDefineOwnProperty.js b/2015/OrdinaryDefineOwnProperty.js index 5d33aa6d..34f029f7 100644 --- a/2015/OrdinaryDefineOwnProperty.js +++ b/2015/OrdinaryDefineOwnProperty.js @@ -2,7 +2,7 @@ var GetIntrinsic = require('get-intrinsic'); -var $gOPD = require('../helpers/getOwnPropertyDescriptor'); +var $gOPD = require('gopd'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); var $TypeError = GetIntrinsic('%TypeError%'); diff --git a/2015/OrdinaryGetOwnProperty.js b/2015/OrdinaryGetOwnProperty.js index 3d11e9fa..fd8035ac 100644 --- a/2015/OrdinaryGetOwnProperty.js +++ b/2015/OrdinaryGetOwnProperty.js @@ -2,7 +2,7 @@ var GetIntrinsic = require('get-intrinsic'); -var $gOPD = require('../helpers/getOwnPropertyDescriptor'); +var $gOPD = require('gopd'); var $TypeError = GetIntrinsic('%TypeError%'); var callBound = require('call-bind/callBound'); diff --git a/2015/SetIntegrityLevel.js b/2015/SetIntegrityLevel.js index f1d33ebe..546f3e74 100644 --- a/2015/SetIntegrityLevel.js +++ b/2015/SetIntegrityLevel.js @@ -5,7 +5,7 @@ var GetIntrinsic = require('get-intrinsic'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); var $TypeError = GetIntrinsic('%TypeError%'); var $preventExtensions = GetIntrinsic('%Object.preventExtensions%', true); -var $gOPD = require('../helpers/getOwnPropertyDescriptor'); +var $gOPD = require('gopd'); var $gOPN = GetIntrinsic('%Object.getOwnPropertyNames%', true); var forEach = require('../helpers/forEach'); diff --git a/2015/TestIntegrityLevel.js b/2015/TestIntegrityLevel.js index adf98a9b..7f95a6e1 100644 --- a/2015/TestIntegrityLevel.js +++ b/2015/TestIntegrityLevel.js @@ -2,7 +2,7 @@ var GetIntrinsic = require('get-intrinsic'); -var $gOPD = require('../helpers/getOwnPropertyDescriptor'); +var $gOPD = require('gopd'); var $TypeError = GetIntrinsic('%TypeError%'); var every = require('../helpers/every'); diff --git a/2016/ObjectDefineProperties.js b/2016/ObjectDefineProperties.js index 32a1c7ed..f096f1ed 100644 --- a/2016/ObjectDefineProperties.js +++ b/2016/ObjectDefineProperties.js @@ -9,7 +9,7 @@ var ToObject = require('./ToObject'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var forEach = require('../helpers/forEach'); -var getOwnPropertyDescriptor = require('../helpers/getOwnPropertyDescriptor'); +var getOwnPropertyDescriptor = require('gopd'); var OwnPropertyKeys = require('../helpers/OwnPropertyKeys'); var $push = callBound('Array.prototype.push'); diff --git a/2016/OrdinaryDefineOwnProperty.js b/2016/OrdinaryDefineOwnProperty.js index 5d33aa6d..34f029f7 100644 --- a/2016/OrdinaryDefineOwnProperty.js +++ b/2016/OrdinaryDefineOwnProperty.js @@ -2,7 +2,7 @@ var GetIntrinsic = require('get-intrinsic'); -var $gOPD = require('../helpers/getOwnPropertyDescriptor'); +var $gOPD = require('gopd'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); var $TypeError = GetIntrinsic('%TypeError%'); diff --git a/2016/OrdinaryGetOwnProperty.js b/2016/OrdinaryGetOwnProperty.js index 3d11e9fa..fd8035ac 100644 --- a/2016/OrdinaryGetOwnProperty.js +++ b/2016/OrdinaryGetOwnProperty.js @@ -2,7 +2,7 @@ var GetIntrinsic = require('get-intrinsic'); -var $gOPD = require('../helpers/getOwnPropertyDescriptor'); +var $gOPD = require('gopd'); var $TypeError = GetIntrinsic('%TypeError%'); var callBound = require('call-bind/callBound'); diff --git a/2016/SetIntegrityLevel.js b/2016/SetIntegrityLevel.js index f1d33ebe..546f3e74 100644 --- a/2016/SetIntegrityLevel.js +++ b/2016/SetIntegrityLevel.js @@ -5,7 +5,7 @@ var GetIntrinsic = require('get-intrinsic'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); var $TypeError = GetIntrinsic('%TypeError%'); var $preventExtensions = GetIntrinsic('%Object.preventExtensions%', true); -var $gOPD = require('../helpers/getOwnPropertyDescriptor'); +var $gOPD = require('gopd'); var $gOPN = GetIntrinsic('%Object.getOwnPropertyNames%', true); var forEach = require('../helpers/forEach'); diff --git a/2016/TestIntegrityLevel.js b/2016/TestIntegrityLevel.js index adf98a9b..7f95a6e1 100644 --- a/2016/TestIntegrityLevel.js +++ b/2016/TestIntegrityLevel.js @@ -2,7 +2,7 @@ var GetIntrinsic = require('get-intrinsic'); -var $gOPD = require('../helpers/getOwnPropertyDescriptor'); +var $gOPD = require('gopd'); var $TypeError = GetIntrinsic('%TypeError%'); var every = require('../helpers/every'); diff --git a/2017/ObjectDefineProperties.js b/2017/ObjectDefineProperties.js index 32a1c7ed..f096f1ed 100644 --- a/2017/ObjectDefineProperties.js +++ b/2017/ObjectDefineProperties.js @@ -9,7 +9,7 @@ var ToObject = require('./ToObject'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var forEach = require('../helpers/forEach'); -var getOwnPropertyDescriptor = require('../helpers/getOwnPropertyDescriptor'); +var getOwnPropertyDescriptor = require('gopd'); var OwnPropertyKeys = require('../helpers/OwnPropertyKeys'); var $push = callBound('Array.prototype.push'); diff --git a/2017/OrdinaryDefineOwnProperty.js b/2017/OrdinaryDefineOwnProperty.js index 5d33aa6d..34f029f7 100644 --- a/2017/OrdinaryDefineOwnProperty.js +++ b/2017/OrdinaryDefineOwnProperty.js @@ -2,7 +2,7 @@ var GetIntrinsic = require('get-intrinsic'); -var $gOPD = require('../helpers/getOwnPropertyDescriptor'); +var $gOPD = require('gopd'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); var $TypeError = GetIntrinsic('%TypeError%'); diff --git a/2017/OrdinaryGetOwnProperty.js b/2017/OrdinaryGetOwnProperty.js index 3d11e9fa..fd8035ac 100644 --- a/2017/OrdinaryGetOwnProperty.js +++ b/2017/OrdinaryGetOwnProperty.js @@ -2,7 +2,7 @@ var GetIntrinsic = require('get-intrinsic'); -var $gOPD = require('../helpers/getOwnPropertyDescriptor'); +var $gOPD = require('gopd'); var $TypeError = GetIntrinsic('%TypeError%'); var callBound = require('call-bind/callBound'); diff --git a/2017/SetIntegrityLevel.js b/2017/SetIntegrityLevel.js index f1d33ebe..546f3e74 100644 --- a/2017/SetIntegrityLevel.js +++ b/2017/SetIntegrityLevel.js @@ -5,7 +5,7 @@ var GetIntrinsic = require('get-intrinsic'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); var $TypeError = GetIntrinsic('%TypeError%'); var $preventExtensions = GetIntrinsic('%Object.preventExtensions%', true); -var $gOPD = require('../helpers/getOwnPropertyDescriptor'); +var $gOPD = require('gopd'); var $gOPN = GetIntrinsic('%Object.getOwnPropertyNames%', true); var forEach = require('../helpers/forEach'); diff --git a/2017/TestIntegrityLevel.js b/2017/TestIntegrityLevel.js index adf98a9b..7f95a6e1 100644 --- a/2017/TestIntegrityLevel.js +++ b/2017/TestIntegrityLevel.js @@ -2,7 +2,7 @@ var GetIntrinsic = require('get-intrinsic'); -var $gOPD = require('../helpers/getOwnPropertyDescriptor'); +var $gOPD = require('gopd'); var $TypeError = GetIntrinsic('%TypeError%'); var every = require('../helpers/every'); diff --git a/2018/ObjectDefineProperties.js b/2018/ObjectDefineProperties.js index 32a1c7ed..f096f1ed 100644 --- a/2018/ObjectDefineProperties.js +++ b/2018/ObjectDefineProperties.js @@ -9,7 +9,7 @@ var ToObject = require('./ToObject'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var forEach = require('../helpers/forEach'); -var getOwnPropertyDescriptor = require('../helpers/getOwnPropertyDescriptor'); +var getOwnPropertyDescriptor = require('gopd'); var OwnPropertyKeys = require('../helpers/OwnPropertyKeys'); var $push = callBound('Array.prototype.push'); diff --git a/2018/OrdinaryDefineOwnProperty.js b/2018/OrdinaryDefineOwnProperty.js index 5d33aa6d..34f029f7 100644 --- a/2018/OrdinaryDefineOwnProperty.js +++ b/2018/OrdinaryDefineOwnProperty.js @@ -2,7 +2,7 @@ var GetIntrinsic = require('get-intrinsic'); -var $gOPD = require('../helpers/getOwnPropertyDescriptor'); +var $gOPD = require('gopd'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); var $TypeError = GetIntrinsic('%TypeError%'); diff --git a/2018/OrdinaryGetOwnProperty.js b/2018/OrdinaryGetOwnProperty.js index 3d11e9fa..fd8035ac 100644 --- a/2018/OrdinaryGetOwnProperty.js +++ b/2018/OrdinaryGetOwnProperty.js @@ -2,7 +2,7 @@ var GetIntrinsic = require('get-intrinsic'); -var $gOPD = require('../helpers/getOwnPropertyDescriptor'); +var $gOPD = require('gopd'); var $TypeError = GetIntrinsic('%TypeError%'); var callBound = require('call-bind/callBound'); diff --git a/2018/SetIntegrityLevel.js b/2018/SetIntegrityLevel.js index f1d33ebe..546f3e74 100644 --- a/2018/SetIntegrityLevel.js +++ b/2018/SetIntegrityLevel.js @@ -5,7 +5,7 @@ var GetIntrinsic = require('get-intrinsic'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); var $TypeError = GetIntrinsic('%TypeError%'); var $preventExtensions = GetIntrinsic('%Object.preventExtensions%', true); -var $gOPD = require('../helpers/getOwnPropertyDescriptor'); +var $gOPD = require('gopd'); var $gOPN = GetIntrinsic('%Object.getOwnPropertyNames%', true); var forEach = require('../helpers/forEach'); diff --git a/2018/TestIntegrityLevel.js b/2018/TestIntegrityLevel.js index adf98a9b..7f95a6e1 100644 --- a/2018/TestIntegrityLevel.js +++ b/2018/TestIntegrityLevel.js @@ -2,7 +2,7 @@ var GetIntrinsic = require('get-intrinsic'); -var $gOPD = require('../helpers/getOwnPropertyDescriptor'); +var $gOPD = require('gopd'); var $TypeError = GetIntrinsic('%TypeError%'); var every = require('../helpers/every'); diff --git a/2019/ObjectDefineProperties.js b/2019/ObjectDefineProperties.js index 32a1c7ed..f096f1ed 100644 --- a/2019/ObjectDefineProperties.js +++ b/2019/ObjectDefineProperties.js @@ -9,7 +9,7 @@ var ToObject = require('./ToObject'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var forEach = require('../helpers/forEach'); -var getOwnPropertyDescriptor = require('../helpers/getOwnPropertyDescriptor'); +var getOwnPropertyDescriptor = require('gopd'); var OwnPropertyKeys = require('../helpers/OwnPropertyKeys'); var $push = callBound('Array.prototype.push'); diff --git a/2019/OrdinaryDefineOwnProperty.js b/2019/OrdinaryDefineOwnProperty.js index 5d33aa6d..34f029f7 100644 --- a/2019/OrdinaryDefineOwnProperty.js +++ b/2019/OrdinaryDefineOwnProperty.js @@ -2,7 +2,7 @@ var GetIntrinsic = require('get-intrinsic'); -var $gOPD = require('../helpers/getOwnPropertyDescriptor'); +var $gOPD = require('gopd'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); var $TypeError = GetIntrinsic('%TypeError%'); diff --git a/2019/OrdinaryGetOwnProperty.js b/2019/OrdinaryGetOwnProperty.js index 3d11e9fa..fd8035ac 100644 --- a/2019/OrdinaryGetOwnProperty.js +++ b/2019/OrdinaryGetOwnProperty.js @@ -2,7 +2,7 @@ var GetIntrinsic = require('get-intrinsic'); -var $gOPD = require('../helpers/getOwnPropertyDescriptor'); +var $gOPD = require('gopd'); var $TypeError = GetIntrinsic('%TypeError%'); var callBound = require('call-bind/callBound'); diff --git a/2019/SetIntegrityLevel.js b/2019/SetIntegrityLevel.js index f1d33ebe..546f3e74 100644 --- a/2019/SetIntegrityLevel.js +++ b/2019/SetIntegrityLevel.js @@ -5,7 +5,7 @@ var GetIntrinsic = require('get-intrinsic'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); var $TypeError = GetIntrinsic('%TypeError%'); var $preventExtensions = GetIntrinsic('%Object.preventExtensions%', true); -var $gOPD = require('../helpers/getOwnPropertyDescriptor'); +var $gOPD = require('gopd'); var $gOPN = GetIntrinsic('%Object.getOwnPropertyNames%', true); var forEach = require('../helpers/forEach'); diff --git a/2019/TestIntegrityLevel.js b/2019/TestIntegrityLevel.js index adf98a9b..7f95a6e1 100644 --- a/2019/TestIntegrityLevel.js +++ b/2019/TestIntegrityLevel.js @@ -2,7 +2,7 @@ var GetIntrinsic = require('get-intrinsic'); -var $gOPD = require('../helpers/getOwnPropertyDescriptor'); +var $gOPD = require('gopd'); var $TypeError = GetIntrinsic('%TypeError%'); var every = require('../helpers/every'); diff --git a/2020/ObjectDefineProperties.js b/2020/ObjectDefineProperties.js index 32a1c7ed..f096f1ed 100644 --- a/2020/ObjectDefineProperties.js +++ b/2020/ObjectDefineProperties.js @@ -9,7 +9,7 @@ var ToObject = require('./ToObject'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var forEach = require('../helpers/forEach'); -var getOwnPropertyDescriptor = require('../helpers/getOwnPropertyDescriptor'); +var getOwnPropertyDescriptor = require('gopd'); var OwnPropertyKeys = require('../helpers/OwnPropertyKeys'); var $push = callBound('Array.prototype.push'); diff --git a/2020/OrdinaryDefineOwnProperty.js b/2020/OrdinaryDefineOwnProperty.js index 5d33aa6d..34f029f7 100644 --- a/2020/OrdinaryDefineOwnProperty.js +++ b/2020/OrdinaryDefineOwnProperty.js @@ -2,7 +2,7 @@ var GetIntrinsic = require('get-intrinsic'); -var $gOPD = require('../helpers/getOwnPropertyDescriptor'); +var $gOPD = require('gopd'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); var $TypeError = GetIntrinsic('%TypeError%'); diff --git a/2020/OrdinaryGetOwnProperty.js b/2020/OrdinaryGetOwnProperty.js index 3d11e9fa..fd8035ac 100644 --- a/2020/OrdinaryGetOwnProperty.js +++ b/2020/OrdinaryGetOwnProperty.js @@ -2,7 +2,7 @@ var GetIntrinsic = require('get-intrinsic'); -var $gOPD = require('../helpers/getOwnPropertyDescriptor'); +var $gOPD = require('gopd'); var $TypeError = GetIntrinsic('%TypeError%'); var callBound = require('call-bind/callBound'); diff --git a/2020/SetIntegrityLevel.js b/2020/SetIntegrityLevel.js index f1d33ebe..546f3e74 100644 --- a/2020/SetIntegrityLevel.js +++ b/2020/SetIntegrityLevel.js @@ -5,7 +5,7 @@ var GetIntrinsic = require('get-intrinsic'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); var $TypeError = GetIntrinsic('%TypeError%'); var $preventExtensions = GetIntrinsic('%Object.preventExtensions%', true); -var $gOPD = require('../helpers/getOwnPropertyDescriptor'); +var $gOPD = require('gopd'); var $gOPN = GetIntrinsic('%Object.getOwnPropertyNames%', true); var forEach = require('../helpers/forEach'); diff --git a/2020/TestIntegrityLevel.js b/2020/TestIntegrityLevel.js index adf98a9b..7f95a6e1 100644 --- a/2020/TestIntegrityLevel.js +++ b/2020/TestIntegrityLevel.js @@ -2,7 +2,7 @@ var GetIntrinsic = require('get-intrinsic'); -var $gOPD = require('../helpers/getOwnPropertyDescriptor'); +var $gOPD = require('gopd'); var $TypeError = GetIntrinsic('%TypeError%'); var every = require('../helpers/every'); diff --git a/2021/ObjectDefineProperties.js b/2021/ObjectDefineProperties.js index 32a1c7ed..f096f1ed 100644 --- a/2021/ObjectDefineProperties.js +++ b/2021/ObjectDefineProperties.js @@ -9,7 +9,7 @@ var ToObject = require('./ToObject'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var forEach = require('../helpers/forEach'); -var getOwnPropertyDescriptor = require('../helpers/getOwnPropertyDescriptor'); +var getOwnPropertyDescriptor = require('gopd'); var OwnPropertyKeys = require('../helpers/OwnPropertyKeys'); var $push = callBound('Array.prototype.push'); diff --git a/2021/OrdinaryDefineOwnProperty.js b/2021/OrdinaryDefineOwnProperty.js index 5d33aa6d..34f029f7 100644 --- a/2021/OrdinaryDefineOwnProperty.js +++ b/2021/OrdinaryDefineOwnProperty.js @@ -2,7 +2,7 @@ var GetIntrinsic = require('get-intrinsic'); -var $gOPD = require('../helpers/getOwnPropertyDescriptor'); +var $gOPD = require('gopd'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); var $TypeError = GetIntrinsic('%TypeError%'); diff --git a/2021/OrdinaryGetOwnProperty.js b/2021/OrdinaryGetOwnProperty.js index 3d11e9fa..fd8035ac 100644 --- a/2021/OrdinaryGetOwnProperty.js +++ b/2021/OrdinaryGetOwnProperty.js @@ -2,7 +2,7 @@ var GetIntrinsic = require('get-intrinsic'); -var $gOPD = require('../helpers/getOwnPropertyDescriptor'); +var $gOPD = require('gopd'); var $TypeError = GetIntrinsic('%TypeError%'); var callBound = require('call-bind/callBound'); diff --git a/2021/SetIntegrityLevel.js b/2021/SetIntegrityLevel.js index f1d33ebe..546f3e74 100644 --- a/2021/SetIntegrityLevel.js +++ b/2021/SetIntegrityLevel.js @@ -5,7 +5,7 @@ var GetIntrinsic = require('get-intrinsic'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); var $TypeError = GetIntrinsic('%TypeError%'); var $preventExtensions = GetIntrinsic('%Object.preventExtensions%', true); -var $gOPD = require('../helpers/getOwnPropertyDescriptor'); +var $gOPD = require('gopd'); var $gOPN = GetIntrinsic('%Object.getOwnPropertyNames%', true); var forEach = require('../helpers/forEach'); diff --git a/2021/TestIntegrityLevel.js b/2021/TestIntegrityLevel.js index adf98a9b..7f95a6e1 100644 --- a/2021/TestIntegrityLevel.js +++ b/2021/TestIntegrityLevel.js @@ -2,7 +2,7 @@ var GetIntrinsic = require('get-intrinsic'); -var $gOPD = require('../helpers/getOwnPropertyDescriptor'); +var $gOPD = require('gopd'); var $TypeError = GetIntrinsic('%TypeError%'); var every = require('../helpers/every'); diff --git a/2022/ObjectDefineProperties.js b/2022/ObjectDefineProperties.js index 32a1c7ed..f096f1ed 100644 --- a/2022/ObjectDefineProperties.js +++ b/2022/ObjectDefineProperties.js @@ -9,7 +9,7 @@ var ToObject = require('./ToObject'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var forEach = require('../helpers/forEach'); -var getOwnPropertyDescriptor = require('../helpers/getOwnPropertyDescriptor'); +var getOwnPropertyDescriptor = require('gopd'); var OwnPropertyKeys = require('../helpers/OwnPropertyKeys'); var $push = callBound('Array.prototype.push'); diff --git a/2022/OrdinaryDefineOwnProperty.js b/2022/OrdinaryDefineOwnProperty.js index 5d33aa6d..34f029f7 100644 --- a/2022/OrdinaryDefineOwnProperty.js +++ b/2022/OrdinaryDefineOwnProperty.js @@ -2,7 +2,7 @@ var GetIntrinsic = require('get-intrinsic'); -var $gOPD = require('../helpers/getOwnPropertyDescriptor'); +var $gOPD = require('gopd'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); var $TypeError = GetIntrinsic('%TypeError%'); diff --git a/2022/OrdinaryGetOwnProperty.js b/2022/OrdinaryGetOwnProperty.js index 3d11e9fa..fd8035ac 100644 --- a/2022/OrdinaryGetOwnProperty.js +++ b/2022/OrdinaryGetOwnProperty.js @@ -2,7 +2,7 @@ var GetIntrinsic = require('get-intrinsic'); -var $gOPD = require('../helpers/getOwnPropertyDescriptor'); +var $gOPD = require('gopd'); var $TypeError = GetIntrinsic('%TypeError%'); var callBound = require('call-bind/callBound'); diff --git a/2022/SetIntegrityLevel.js b/2022/SetIntegrityLevel.js index f1d33ebe..546f3e74 100644 --- a/2022/SetIntegrityLevel.js +++ b/2022/SetIntegrityLevel.js @@ -5,7 +5,7 @@ var GetIntrinsic = require('get-intrinsic'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); var $TypeError = GetIntrinsic('%TypeError%'); var $preventExtensions = GetIntrinsic('%Object.preventExtensions%', true); -var $gOPD = require('../helpers/getOwnPropertyDescriptor'); +var $gOPD = require('gopd'); var $gOPN = GetIntrinsic('%Object.getOwnPropertyNames%', true); var forEach = require('../helpers/forEach'); diff --git a/2022/TestIntegrityLevel.js b/2022/TestIntegrityLevel.js index adf98a9b..7f95a6e1 100644 --- a/2022/TestIntegrityLevel.js +++ b/2022/TestIntegrityLevel.js @@ -2,7 +2,7 @@ var GetIntrinsic = require('get-intrinsic'); -var $gOPD = require('../helpers/getOwnPropertyDescriptor'); +var $gOPD = require('gopd'); var $TypeError = GetIntrinsic('%TypeError%'); var every = require('../helpers/every'); diff --git a/helpers/getOwnPropertyDescriptor.js b/helpers/getOwnPropertyDescriptor.js index 352fbc6b..e0f823d1 100644 --- a/helpers/getOwnPropertyDescriptor.js +++ b/helpers/getOwnPropertyDescriptor.js @@ -1,15 +1,5 @@ 'use strict'; -var GetIntrinsic = require('get-intrinsic'); +// TODO: remove, semver-major -var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true); -if ($gOPD) { - try { - $gOPD([], 'length'); - } catch (e) { - // IE 8 has a broken gOPD - $gOPD = null; - } -} - -module.exports = $gOPD; +module.exports = require('gopd'); diff --git a/package.json b/package.json index f9202da5..a1722fdd 100644 --- a/package.json +++ b/package.json @@ -58,6 +58,7 @@ "function.prototype.name": "^1.1.5", "get-intrinsic": "^1.1.3", "get-symbol-description": "^1.0.0", + "gopd": "^1.0.1", "has": "^1.0.3", "has-property-descriptors": "^1.0.0", "has-symbols": "^1.0.3", diff --git a/test/GetIntrinsic.js b/test/GetIntrinsic.js index d9e07761..de160f25 100644 --- a/test/GetIntrinsic.js +++ b/test/GetIntrinsic.js @@ -12,7 +12,7 @@ var mockProperty = require('mock-property'); var callBound = require('call-bind/callBound'); var v = require('es-value-fixtures'); -var $gOPD = require('../helpers/getOwnPropertyDescriptor'); +var $gOPD = require('gopd'); var DefinePropertyOrThrow = require('../2021/DefinePropertyOrThrow'); var $isProto = callBound('%Object.prototype.isPrototypeOf%'); diff --git a/test/tests.js b/test/tests.js index 55fca1ae..fef17db7 100644 --- a/test/tests.js +++ b/test/tests.js @@ -14,13 +14,13 @@ var functionsHaveNames = require('functions-have-names')(); var functionsHaveConfigurableNames = require('functions-have-names').functionsHaveConfigurableNames(); var boundFunctionsHaveNames = require('functions-have-names').boundFunctionsHaveNames(); var hasBigInts = require('has-bigints')(); +var getOwnPropertyDescriptor = require('gopd'); var $getProto = require('../helpers/getProto'); var $setProto = require('../helpers/setProto'); var defineProperty = require('./helpers/defineProperty'); var getInferredName = require('../helpers/getInferredName'); var fromPropertyDescriptor = require('../helpers/fromPropertyDescriptor'); -var getOwnPropertyDescriptor = require('../helpers/getOwnPropertyDescriptor'); var assertRecordTests = require('./helpers/assertRecord'); var v = require('es-value-fixtures'); var diffOps = require('./diffOps');