Skip to content

require.builtin can be escaped when require.context is host #76

@tommytroylin

Description

@tommytroylin

When require.context === host and sets require.builtin to block fs module.
Everything works fine except for requiring an external module which require('fs') in its code.
In this case, VM should throw an Access denied to require 'fs' error but it doesn't.

Seems like require in host is not patched as expected

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions