Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src: allow loading lib/ files from disk #9652

Closed
wants to merge 2 commits into from

Commits on Dec 5, 2016

  1. src: allow loading lib/ files from disk

    Introduce a `--internal-modules-source-dir=` CLI option that allows
    developers to test a modified version of the Node JavaScript source
    files without rebuilding the Node executable and instead loading
    the files from a directory on the disk.
    
    This can be useful in situations where compiling and linking takes a
    disproportionately long time, e.g. debugging Node core on slow machines
    or inside of VMs, or installing a full compiler toolchain to build
    Node does not seem reasonable.
    
    This change does not document the CLI option in the official
    documentation as it targets developers, not users, of Node.
    Instead, a note is left in `CONTRIBUTING.md`.
    addaleax committed Dec 5, 2016
    Configuration menu
    Copy the full SHA
    a5dd8bd View commit details
    Browse the repository at this point in the history
  2. src: allow specifying entry point script

    Introduce a `--js-entry-point=` CLI option that allows pointing
    the node executable to a main entry point that’s not
    `lib/internal/bootstrap_node.js`.
    addaleax committed Dec 5, 2016
    Configuration menu
    Copy the full SHA
    991e955 View commit details
    Browse the repository at this point in the history