We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f88a5d4 commit da0601dCopy full SHA for da0601d
lib/jasmine-node/jasmine/boot.js
@@ -64,7 +64,7 @@
64
return spec.doneFunc();
65
}
66
};
67
- if (func.length > 0) {
+ if (func != null ? func.length : void 0) {
68
wrappedFunc = function(done) {
69
spec.doneFunc = done;
70
func.call(this, wrappedDone);
src/jasmine/boot.coffee
@@ -53,7 +53,7 @@ boot = (jasmineRequire, clockCallback) ->
53
return spec.doneFunc()
54
return
55
56
- if func.length > 0
+ if func?.length
57
wrappedFunc = (done) ->
58
spec.doneFunc = done
59
func.call(@, wrappedDone)
0 commit comments