GeezerVison is showing github.com — test: split test-esm-loader-hooks · nodejs/node@72f1463
File tree
Expand file treeCollapse file tree
Open diff view settings
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss bannerExpand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: test/es-module/test-esm-loader-hooks.mjs -860Lines changed: 0 additions & 860 deletions Collapse file
Copy file name to clipboard +3Lines changed: 3 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +export function load(a, b, c) { |
| 2 | + return new Promise(d => setTimeout(() => d(c(a, b)), 99)); |
| 3 | +} |
Collapse file
Copy file name to clipboard +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +export function load(a, b, next) { |
| 2 | + if (a === 'data:exit') process.exit(42); |
| 3 | + return next(a, b); |
| 4 | +} |
Collapse file
Copy file name to clipboard +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +export function resolve(a, b, next) { |
| 2 | + if (a === 'exit:') process.exit(42); |
| 3 | + return next(a, b); |
| 4 | +} |
Collapse file
Copy file name to clipboard +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +process.exit(42); |
Collapse file
Copy file name to clipboard +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +export function globalPreload() {} |
| 2 | +export function initialize() {} |
Collapse file
Copy file name to clipboard +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +export function globalPreload() {} |
Collapse file
Copy file name to clipboard +3Lines changed: 3 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +export function globalPreload() { |
| 2 | + return ''; |
| 3 | +} |
Collapse file
Copy file name to clipboard +3Lines changed: 3 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +export function initialize() { |
| 2 | + process.exit(42); |
| 3 | +} |
Collapse file
Copy file name to clipboard +3Lines changed: 3 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +export function initialize() { |
| 2 | + return new Promise(() => {}); |
| 3 | +} |