Skip to content

Commit

Permalink
fix(detection): strict coercion to boolean
Browse files Browse the repository at this point in the history
for the promise.___customPromise and promise.___nativePromise
  • Loading branch information
tunnckoCore committed Mar 11, 2017
1 parent ddb645c commit c1430fe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dist/redolent.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,8 @@ var index = function redolent (fn, opts) {
}
});

promise.___nativePromise = index$10;
promise.___customPromise = !index$10;
promise.___nativePromise = Boolean(index$10);
promise.___customPromise = !promise.___nativePromise;
return promise
}
};
Expand Down
4 changes: 2 additions & 2 deletions dist/redolent.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,8 @@ var index = function redolent (fn, opts) {
}
});

promise.___nativePromise = index$10;
promise.___customPromise = !index$10;
promise.___nativePromise = Boolean(index$10);
promise.___customPromise = !promise.___nativePromise;
return promise
}
};
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ module.exports = function redolent (fn, opts) {
}
})

promise.___nativePromise = Native
promise.___customPromise = !Native
promise.___nativePromise = Boolean(Native)
promise.___customPromise = !promise.___nativePromise
return promise
}
}

0 comments on commit c1430fe

Please sign in to comment.