Ddfordp

node/22.8.0/vm-context-modifications-codemod

No description available

node22.8.0vm context modifications
Public
0 executions
Run locally
npx codemod node/22.8.0/vm-context-modifications-codemod
Documentation

Node.js implements a flavor of vm.createContext() and friends that creates a context without contextifying its global object when vm.constants.DONT_CONTEXTIFY is used. This is suitable when users want to freeze the context (impossible when the global is contextified i.e. has interceptors installed) or speed up the global access if they don't need the interceptor behavior.

Before

ts

After

ts

Ready to contribute?

Build your own codemod and share it with the community.