mol_regexp 0.0.1227 → 0.0.1229

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
@@ -342,7 +342,12 @@ var $;
342
342
  var $;
343
343
  (function ($) {
344
344
  function $mol_promise_like(val) {
345
- return val && typeof val === 'object' && 'then' in val && typeof val.then === 'function';
345
+ try {
346
+ return val && typeof val === 'object' && 'then' in val && typeof val.then === 'function';
347
+ }
348
+ catch {
349
+ return false;
350
+ }
346
351
  }
347
352
  $.$mol_promise_like = $mol_promise_like;
348
353
  })($ || ($ = {}));