You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
False warning "built-in module … is not yet supported in user snapshots" #80
require("http") during snapshot creation does not work and I assume that's why this warning exists at all. However, require("http") in the deserialize main function (so, after snapshot creation) works fine, but still prints this warning (when the snapshot is run):
(node:161191) Warning: built-in module http is not yet supported in user snapshots
(Use `hello --trace-warnings ...` to show where the warning was created)
It is really safe to require all built-in modules in the deserialize main function? If so, this warning should be silenced in these cases.
This is probably less of a SEA issue, some things I think can be done:
Make the warning clearer - it's more of a "use it at your own risk" warning. "not yet supported" means we haven't fully verified the said module works in snapshots. It might still work fine for some use cases, though for other use cases there might be subtle bugs because we haven't added the necessary synchronization for the serialization/deserialization passes (or we just haven't looked into it deeply to check if there are synchronization needed or not)
We can emit the warning only when the snapshot is built. In general loading a new module not yet loaded in snapshot at deserialization time is safe.
Activity
joyeecheung commentedon Nov 27, 2023
This is probably less of a SEA issue, some things I think can be done:
joyeecheung commentedon Feb 15, 2024
Did 1 and 2 in nodejs/node#50944