Skip to content

Commit

Permalink
remove setting asyncFn.name to fix a safari bug
Browse files Browse the repository at this point in the history
  • Loading branch information
aearly committed Feb 24, 2020
1 parent f4d19c7 commit 9204af1
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/internal/awaitify.js
Expand Up @@ -16,10 +16,5 @@ export default function awaitify (asyncFn, arity = asyncFn.length) {
})
}

Object.defineProperty(awaitable, 'name', {
configurable: true, // allows redefining
value: `awaitable(${asyncFn.name})`
})

return awaitable
}

0 comments on commit 9204af1

Please sign in to comment.