mol_tree2 1.0.778 → 1.0.779

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
@@ -2031,7 +2031,12 @@ var $;
2031
2031
  var $;
2032
2032
  (function ($) {
2033
2033
  function $mol_promise_like(val) {
2034
- return val && typeof val === 'object' && 'then' in val && typeof val.then === 'function';
2034
+ try {
2035
+ return val && typeof val === 'object' && 'then' in val && typeof val.then === 'function';
2036
+ }
2037
+ catch {
2038
+ return false;
2039
+ }
2035
2040
  }
2036
2041
  $.$mol_promise_like = $mol_promise_like;
2037
2042
  })($ || ($ = {}));