felixge / felixge/node-sandboxed-module

module.paths is undefined inside sandbox

Open
#60 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
343
Forks
41
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.