Skip to content

test: cover Node SEA compatibility - #123

Merged
timfish merged 1 commit into
nodejs:mainfrom
GiHoon1123:test-109-sea-compatibility
Jul 28, 2026
Merged

test: cover Node SEA compatibility#123
timfish merged 1 commit into
nodejs:mainfrom
GiHoon1123:test-109-sea-compatibility

Conversation

@GiHoon1123

Copy link
Copy Markdown
Contributor

Fixes #109

Node SEA does not provide require.resolve. This has caused require-in-the-middle to fail while loading before.

Add a regression test that loads index.js with a require function that has no resolve property. The test also creates a Hook, hooks the builtin path module, and unhooks it.

The test uses vm to reproduce the SEA-specific loader condition without adding a SEA build tool or changing the supported Node.js test matrix.

Tests:

  • npm test

@GiHoon1123

Copy link
Copy Markdown
Contributor Author

Just checking in on this one when you have a chance. No rush.

@timfish
timfish requested a review from a team July 28, 2026 14:26
@timfish
timfish merged commit 72726cb into nodejs:main Jul 28, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add tests for Node Single Executable Applications

3 participants