Skip to content

Commit

Permalink
[Fix] use has-symbols package to ensure we support Symbol shams too.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed May 31, 2017
1 parent 84bccf3 commit 75135c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion implementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var slice = Function.call.bind(Array.prototype.slice);
var concat = Function.call.bind(Array.prototype.concat);
var forEach = Function.call.bind(Array.prototype.forEach);

var hasSymbols = typeof Symbol === 'function' && typeof Symbol('') === 'symbol';
var hasSymbols = require('has-symbols')();

var kCustomPromisifiedSymbol = hasSymbols ? Symbol('util.promisify.custom') : null;
var kCustomPromisifyArgsSymbol = hasSymbols ? Symbol('customPromisifyArgs') : null;
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "index.js",
"dependencies": {
"define-properties": "^1.1.2",
"has-symbols": "^1.0.0",
"object.getownpropertydescriptors": "^2.0.3"
},
"devDependencies": {
Expand Down

0 comments on commit 75135c8

Please sign in to comment.