| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a77940c commit 5cca693
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -148,7 +148,8 @@ EventEmitter.prototype.emit = function emit(type) { | |||
| 148 | 148 | ||
| 149 | 149 | // If there is no 'error' event listener then throw. | |
| 150 | 150 | if (doError) { | |
| 151 | - er = arguments[1]; | ||
| 151 | + if (arguments.length > 1) | ||
| 152 | + er = arguments[1]; | ||
| 152 | 153 | if (domain) { | |
| 153 | 154 | if (!er) | |
| 154 | 155 | er = new Error('Uncaught, unspecified "error" event'); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments