| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -880,7 +880,10 @@ $_ready(function() { | |||
| 880 | 880 | **/ | |
| 881 | 881 | ||
| 882 | 882 | // Assert the result of a function | |
| 883 | - function assertAsync (callable, args = null) { | ||
| 883 | + function assertAsync (callable, args) { | ||
| 884 | + if (typeof args === "undefined") { | ||
| 885 | + args = null; | ||
| 886 | + } | ||
| 884 | 887 | block = true; | |
| 885 | 888 | return new Promise (function (resolve, reject) { | |
| 886 | 889 | var result = callable.apply(null, args); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments