| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3077f6a commit a679669
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,6 +7,7 @@ const { setTimeout } = require('timers'); | |||
| 7 | 7 | const { | |
| 8 | 8 | strictEqual, | |
| 9 | 9 | rejects, | |
| 10 | + throws, | ||
| 10 | 11 | } = require('assert'); | |
| 11 | 12 | ||
| 12 | 13 | async function testYield() { | |
@@ -48,3 +49,7 @@ async function testCancelableWait2() { | |||
| 48 | 49 | } | |
| 49 | 50 | ||
| 50 | 51 | testCancelableWait2().then(common.mustCall()); | |
| 52 | + | ||
| 53 | + throws(() => new scheduler.constructor(), { | ||
| 54 | + code: 'ERR_ILLEGAL_CONSTRUCTOR', | ||
| 55 | + }); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments