Synthetic module import handler

13 views
Skip to first unread message

Ronald Fenner

unread,
Dec 22, 2024, 8:40:07 AM12/22/24
to v8-dev
I was thinking about adding a with attribute to selectively load modules but realized I would still need to return something or else the import would fail.
The idea is to create a synthetic module that would return a handler for any imported value that if called would cause an exception.

The code writer of course would have to handle detecting that their condition is not met and only call those imports when they are valid.
Reply all
Reply to author
Forward
0 new messages