| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 928291c commit 14c28eb
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -25,7 +25,7 @@ function test1() { | |||
| 25 | 25 | d.run(function() { | |
| 26 | 26 | setTimeout(function onTimeout() { | |
| 27 | 27 | throw new Error('boom!'); | |
| 28 | - }); | ||
| 28 | + }, 1); | ||
| 29 | 29 | }); | |
| 30 | 30 | } | |
| 31 | 31 | ||
@@ -59,7 +59,7 @@ function test3() { | |||
| 59 | 59 | const d3 = domain.create(); | |
| 60 | 60 | const d4 = domain.create(); | |
| 61 | 61 | ||
| 62 | - d3.on('error', function onErrorInD3Domain(err) { | ||
| 62 | + d3.on('error', function onErrorInD3Domain() { | ||
| 63 | 63 | process.send('errorHandledByDomain'); | |
| 64 | 64 | }); | |
| 65 | 65 | ||
@@ -88,15 +88,15 @@ function test4() { | |||
| 88 | 88 | const d5 = domain.create(); | |
| 89 | 89 | const d6 = domain.create(); | |
| 90 | 90 | ||
| 91 | - d5.on('error', function onErrorInD2Domain(err) { | ||
| 91 | + d5.on('error', function onErrorInD2Domain() { | ||
| 92 | 92 | process.send('errorHandledByDomain'); | |
| 93 | 93 | }); | |
| 94 | 94 | ||
| 95 | 95 | d5.run(function() { | |
| 96 | 96 | d6.run(function() { | |
| 97 | 97 | setTimeout(function onTimeout() { | |
| 98 | 98 | throw new Error('boom!'); | |
| 99 | - }); | ||
| 99 | + }, 1); | ||
| 100 | 100 | }); | |
| 101 | 101 | }); | |
| 102 | 102 | } | |
@@ -115,7 +115,7 @@ function test5() { | |||
| 115 | 115 | const d7 = domain.create(); | |
| 116 | 116 | const d8 = domain.create(); | |
| 117 | 117 | ||
| 118 | - d8.on('error', function onErrorInD3Domain(err) { | ||
| 118 | + d8.on('error', function onErrorInD3Domain() { | ||
| 119 | 119 | process.send('errorHandledByDomain'); | |
| 120 | 120 | }); | |
| 121 | 121 | ||
@@ -139,15 +139,15 @@ function test6() { | |||
| 139 | 139 | const d9 = domain.create(); | |
| 140 | 140 | const d10 = domain.create(); | |
| 141 | 141 | ||
| 142 | - d10.on('error', function onErrorInD2Domain(err) { | ||
| 142 | + d10.on('error', function onErrorInD2Domain() { | ||
| 143 | 143 | process.send('errorHandledByDomain'); | |
| 144 | 144 | }); | |
| 145 | 145 | ||
| 146 | 146 | d9.run(function() { | |
| 147 | 147 | d10.run(function() { | |
| 148 | 148 | setTimeout(function onTimeout() { | |
| 149 | 149 | throw new Error('boom!'); | |
| 150 | - }); | ||
| 150 | + }, 1); | ||
| 151 | 151 | }); | |
| 152 | 152 | }); | |
| 153 | 153 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments