mol_time_all 1.1.1059 → 1.1.1060

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
@@ -838,7 +838,12 @@ var $;
838
838
  var $;
839
839
  (function ($) {
840
840
  function $mol_promise_like(val) {
841
- return val && typeof val === 'object' && 'then' in val && typeof val.then === 'function';
841
+ try {
842
+ return val && typeof val === 'object' && 'then' in val && typeof val.then === 'function';
843
+ }
844
+ catch {
845
+ return false;
846
+ }
842
847
  }
843
848
  $.$mol_promise_like = $mol_promise_like;
844
849
  })($ || ($ = {}));