| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f12bab6 commit 278d718
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,16 +1,16 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | - require('../common'); | ||
| 2 | + const common = require('../common'); | ||
| 3 | 3 | ||
| 4 | - process.on('uncaughtException', function() { }); | ||
| 4 | + process.on('uncaughtException', common.mustCall(function() {}, 2)); | ||
| 5 | 5 | ||
| 6 | 6 | setTimeout(function() { | |
| 7 | 7 | process.nextTick(function() { | |
| 8 | - var c = setInterval(function() { | ||
| 8 | + const c = setInterval(function() { | ||
| 9 | 9 | clearInterval(c); | |
| 10 | 10 | throw new Error('setInterval'); | |
| 11 | - }); | ||
| 11 | + }, 1); | ||
| 12 | 12 | }); | |
| 13 | 13 | setTimeout(function() { | |
| 14 | 14 | throw new Error('setTimeout'); | |
| 15 | - }); | ||
| 15 | + }, 1); | ||
| 16 | 16 | }); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments