mol_regexp 0.0.976 → 0.0.978
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 +1 -1
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.test.js +1 -1
- package/web.test.js.map +1 -1
package/node.test.js
CHANGED
|
@@ -342,7 +342,7 @@ var $;
|
|
|
342
342
|
var $;
|
|
343
343
|
(function ($) {
|
|
344
344
|
function $mol_promise_like(val) {
|
|
345
|
-
return val && typeof val.then === 'function';
|
|
345
|
+
return val && typeof val === 'object' && 'then' in val && typeof val.then === 'function';
|
|
346
346
|
}
|
|
347
347
|
$.$mol_promise_like = $mol_promise_like;
|
|
348
348
|
})($ || ($ = {}));
|