https://github.com/nodejs/node/pull/52535
We might need some refactoring for nested functions and dynamic imports, which might fail.