test: add a simple test for `import defer` of a CJS module · nodejs/node@bca3367 · GitHub
Skip to content

Commit bca3367

Browse files
MayaLekovaaduh95
authored andcommitted
test: add a simple test for import defer of a CJS module
This tests imports a CommonJS modules with the `defer` modifier. It ensures that the imported module is not evaluated before accessing properties from its exports. Signed-off-by: Maya Lekova <maya@igalia.com> PR-URL: #64694 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
1 parent 0998016 commit bca3367

2 files changed

Lines changed: 47 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Lines changed: 17 additions & 0 deletions

0 commit comments

Comments
 (0)