src: per-isolate eternal template properties · nodejs/node@d084150 · GitHub
Skip to content

Commit d084150

Browse files
legendecasdanielleadams
authored andcommitted
src: per-isolate eternal template properties
`FunctionTemplate` and `ObjectTemplate` can be shared across realms. They should be per-isolate eternal handles and can not be modified. As these templates are lazily initialized, their setters are still exposed with DCHECK on their value presence. PR-URL: #43802 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
1 parent 17a4e5e commit d084150

5 files changed

Lines changed: 162 additions & 99 deletions

File tree

src/env-inl.h

Lines changed: 27 additions & 7 deletions

src/env.cc

Lines changed: 96 additions & 66 deletions

0 commit comments

Comments
 (0)