| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d59d7fd commit a17cf06
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -49,3 +49,17 @@ testCancelableWait2().then(common.mustCall()); | |||
| 49 | 49 | assert.throws(() => new scheduler.constructor(), { | |
| 50 | 50 | code: 'ERR_ILLEGAL_CONSTRUCTOR', | |
| 51 | 51 | }); | |
| 52 | + | ||
| 53 | + assert.throws(() => { | ||
| 54 | + scheduler.yield.call({}); | ||
| 55 | + }, { | ||
| 56 | + code: 'ERR_INVALID_THIS', | ||
| 57 | + message: /Scheduler/, | ||
| 58 | + }); | ||
| 59 | + | ||
| 60 | + assert.throws(() => { | ||
| 61 | + scheduler.wait.call({}, 10); | ||
| 62 | + }, { | ||
| 63 | + code: 'ERR_INVALID_THIS', | ||
| 64 | + message: /Scheduler/, | ||
| 65 | + }); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments