Unverified Commit 97eaa2aa authored by Joyee Cheung's avatar Joyee Cheung
Browse files

lib: make internal/options lazy

This way, internal modules can still require the module
and cache the function getOptionValue() early (therefore
these code can be included in the snapshots), but the
options map won't be serialized from C++ land until the
option values are actually queried.

PR-URL: https://github.com/nodejs/node/pull/38993
Refs: https://github.com/nodejs/node/issues/35711
Refs: https://github.com/nodejs/node/pull/38905


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
Reviewed-By: default avatarZijian Liu <lxxyxzj@gmail.com>
Reviewed-By: default avatarColin Ihrig <cjihrig@gmail.com>
parent f8898eae
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment