mol_compare_deep 0.0.965 → 0.0.967

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
@@ -182,7 +182,12 @@ var $;
182
182
  var $;
183
183
  (function ($) {
184
184
  function $mol_promise_like(val) {
185
- return val && typeof val === 'object' && 'then' in val && typeof val.then === 'function';
185
+ try {
186
+ return val && typeof val === 'object' && 'then' in val && typeof val.then === 'function';
187
+ }
188
+ catch {
189
+ return false;
190
+ }
186
191
  }
187
192
  $.$mol_promise_like = $mol_promise_like;
188
193
  })($ || ($ = {}));