Skip to content

Commit cdaa465

Browse files
committed
[Refactor] use gopd instead of an es-abstract helper`
1 parent 677ae4b commit cdaa465

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ var callBound = require('call-bind/callBound');
66

77
var $toString = callBound('Object.prototype.toString');
88
var hasToStringTag = require('has-tostringtag/shams')();
9+
var gOPD = require('gopd');
910

1011
var g = typeof globalThis === 'undefined' ? global : globalThis;
1112
var typedArrays = availableTypedArrays();
@@ -20,7 +21,6 @@ var $indexOf = callBound('Array.prototype.indexOf', true) || function indexOf(ar
2021
};
2122
var $slice = callBound('String.prototype.slice');
2223
var toStrTags = {};
23-
var gOPD = require('es-abstract/helpers/getOwnPropertyDescriptor');
2424
var getPrototypeOf = Object.getPrototypeOf; // require('getprototypeof');
2525
if (hasToStringTag && gOPD && getPrototypeOf) {
2626
forEach(typedArrays, function (typedArray) {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@
5858
"dependencies": {
5959
"available-typed-arrays": "^1.0.5",
6060
"call-bind": "^1.0.2",
61-
"es-abstract": "^1.20.4",
6261
"for-each": "^0.3.3",
62+
"gopd": "^1.0.1",
6363
"has-tostringtag": "^1.0.0"
6464
},
6565
"devDependencies": {

0 commit comments

Comments
 (0)