When/why would you want to do this? I went to pt. 1 but it didn't seem clear.
This series is effectively about doing the same, but embedded Deno instead of Lua. It's showing how to launch Deno runtime, and how to seed those runtime with various hooks to access & manipulate the program it's embedded in.