We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11f5d1f commit 709b861Copy full SHA for 709b861
lib/async.js
@@ -1089,12 +1089,12 @@
1089
var memoized = _restParam(function memoized(args) {
1090
var callback = args.pop();
1091
var key = hasher.apply(null, args);
1092
- if (key in memo) {
+ if (memo.hasOwnProperty(key)) {
1093
async.setImmediate(function () {
1094
callback.apply(null, memo[key]);
1095
});
1096
}
1097
- else if (key in queues) {
+ else if (queues.hasOwnProperty(key)) {
1098
queues[key].push(callback);
1099
1100
else {
0 commit comments