mol_compare_deep 0.0.712 → 0.0.714

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/node.test.js CHANGED
@@ -300,7 +300,7 @@ var $;
300
300
  var $;
301
301
  (function ($) {
302
302
  function $mol_promise_like(val) {
303
- return val && typeof val.then === 'function';
303
+ return val && typeof val === 'object' && 'then' in val && typeof val.then === 'function';
304
304
  }
305
305
  $.$mol_promise_like = $mol_promise_like;
306
306
  })($ || ($ = {}));