Please sign in to comment.
doc: add vm example, be able to require modules
The intention behind is to present the user a way to execute code in a vm context. The current API doesn't allow this out-of-the-box, since it is neither passing a require function nor creating context with one. The missing docs for this behaviour have produced a number of Q&A items and have also been discussed in the node-archive repo. In both cases there was no real canonical answer. Refs: nodejs/node-v0.x-archive#9211, #4955 PR-URL: #5323 Reviewed-By: James M Snell <firstname.lastname@example.org> Reviewed-By: Stephen Belanger <email@example.com> Reviewed-By: Myles Borins <firstname.lastname@example.org> Reviewed-By: Sakthipriyan Vairamani <email@example.com> Reviewed-By: Benjamin Gruenbaum <firstname.lastname@example.org>
- Loading branch information...