| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 644c416 commit 66ad4be
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -104,6 +104,12 @@ process.on('multipleResolves', common.mustNotCall()); | |||
| 104 | 104 | code: 'ERR_INVALID_ARG_TYPE' | |
| 105 | 105 | })).then(common.mustCall()); | |
| 106 | 106 | ||
| 107 | + Promise.all( | ||
| 108 | + [1, '', Infinity, null, {}].map( | ||
| 109 | + (ref) => assert.rejects(setImmediate(10, { ref })), { | ||
| 110 | + code: 'ERR_INVALID_ARG_TYPE' | ||
| 111 | + })).then(common.mustCall()); | ||
| 112 | + | ||
| 107 | 113 | Promise.all( | |
| 108 | 114 | [1, '', false, Infinity].map( | |
| 109 | 115 | (i) => assert.rejects(setTimeout(10, null, i)), { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments