felixge / felixge/node-sandboxed-module

module.paths is undefined inside sandbox

Aperta
#60 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
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.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.