felixge / felixge/node-sandboxed-module
module.paths is undefined inside sandbox
Aperta
- Lingua principale
- JavaScript
- Stelle
- 343
- Fork
- 41
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Some modules use [undocumented](https://nodejs.org/api/modules.html#modules_the_module_object) property `module.paths`, but it seems that `Module` instance, that is used by `sandboxed-module`, lacks of that property.
I think the property (and maybe some others) could be simply [monkeypatched](https://github.com/felixge/node-sandboxed-module/blob/master/lib/sandboxed_module.js#L70) to make sandbox look closer to the native environment.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.