()
| 29 | } |
| 30 | |
| 31 | async function invalidLinkValue() { |
| 32 | const invalidValues = [ |
| 33 | undefined, |
| 34 | null, |
| 35 | {}, |
| 36 | SourceTextModule.prototype, |
| 37 | ]; |
| 38 | |
| 39 | for (const value of invalidValues) { |
| 40 | const module = new SourceTextModule('import "foo"'); |
| 41 | await assert.rejects(module.link(() => value), { |
| 42 | code: 'ERR_VM_MODULE_NOT_MODULE', |
| 43 | }); |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | async function depth() { |
| 48 | const foo = new SourceTextModule('export default 5'); |
no test coverage detected
searching dependent graphs…