Ignore Object property names

Fixes #96
This commit is contained in:
Michael Jackson 2018-05-14 08:06:49 -07:00
parent c62661e5a7
commit 3d463a14aa

View File

@ -1,5 +1,5 @@
function createMutex(doWork) { function createMutex(doWork) {
const mutex = {}; const mutex = Object.create(null);
return (key, payload, callback) => { return (key, payload, callback) => {
if (mutex[key]) { if (mutex[key]) {