()
| 24 | } |
| 25 | |
| 26 | async function testInvalid() { |
| 27 | for (const invalidValue of [ |
| 28 | null, {}, 0, Symbol.iterator, [], 'string', false, |
| 29 | ]) { |
| 30 | assert.throws(() => { |
| 31 | new SourceTextModule('', { |
| 32 | initializeImportMeta: invalidValue |
| 33 | }); |
| 34 | }, { |
| 35 | code: 'ERR_INVALID_ARG_TYPE', |
| 36 | name: 'TypeError' |
| 37 | }); |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | (async () => { |
| 42 | await testBasic(); |
no outgoing calls
no test coverage detected
searching dependent graphs…