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

[v11.x backport] src: cleanup cli options on internalBinding('config') #26027

Closed

Commits on Feb 10, 2019

  1. src: pass cli options to bootstrap/loaders.js lexically

    Instead of using `internalBinding('config')` which should be used
    to carry information about build-time options, directly pass the
    run-time cli options into bootstrap/loaders.js lexically via
    function arguments.
    
    PR-URL: nodejs#25463
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    joyeecheung authored and ZYSzys committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    d1e0955 View commit details
    Browse the repository at this point in the history
  2. src: remove unused internalBinding('config') properties

    Remove the following properties:
    
    - `preserveSymlinks`
    - `preserveSymlinksMain`
    - `experimentalModules`
    - `userLoader`
    - `experimentalVMModules`
    - `experimentalREPLAwait`
    - `exposeInternals`
    
    We used to use them to pass cli option values from C++ into
    JS, but now the values are obtained in JS land using
    `require('internal/options').getOptionValue` instead so they
    are unused.
    
    Also removes `test/parallel/test-internal-modules-expose.js`
    which tests `--expose-internals`.
    We already have hundreds of tests depending on `--expose-internals`,
    they are more than enough to test the functionality of the flag.
    
    PR-URL: nodejs#25463
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    joyeecheung authored and ZYSzys committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    72d135b View commit details
    Browse the repository at this point in the history