Skip to content

Commit fc46390

Browse files
committed
[Refactor] use get-proto directly
1 parent dc78cf5 commit fc46390

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var toStr = Object.prototype.toString;
44
var fnToStr = Function.prototype.toString;
55
var isFnRegex = /^\s*async(?:\s+function(?:\s+|\()|\s*\()/;
66
var hasToStringTag = require('has-tostringtag/shams')();
7-
var getProto = Object.getPrototypeOf;
7+
var getProto = require('get-proto');
88
var getAsyncFunc = function () { // eslint-disable-line consistent-return
99
if (!hasToStringTag) {
1010
return false;

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"url": "https://github.com/inspect-js/is-async-function/issues"
4141
},
4242
"dependencies": {
43+
"get-proto": "^1.0.1",
4344
"has-tostringtag": "^1.0.2"
4445
},
4546
"devDependencies": {

0 commit comments

Comments
 (0)