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
1 changed files with 1 additions and 1 deletions

View File

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