()
| 8 | const vm = require('vm'); |
| 9 | |
| 10 | async function createSyntheticModule() { |
| 11 | const m = new vm.SyntheticModule(['bar'], () => { |
| 12 | m.setExport('bar', new Array(512).fill('----')); |
| 13 | }); |
| 14 | await m.link(() => {}); |
| 15 | await m.evaluate(); |
| 16 | return m; |
| 17 | } |
| 18 | checkIfCollectable(createSyntheticModule, 4096); |