Unverified Commit e6c22772 authored by Joyee Cheung's avatar Joyee Cheung
Browse files

vm: lazily initialize primordials for vm contexts

Lazily initialize primordials when cross-context support for
builtins is needed to fix the performance regression in context
creation.

PR-URL: https://github.com/nodejs/node/pull/31738
Fixes: https://github.com/nodejs/node/issues/29842


Reviewed-By: default avatarGus Caplan <me@gus.host>
Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
Reviewed-By: default avatarDavid Carlier <devnexen@gmail.com>
parent 822101f5
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