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: improve module loader readability #16536

Closed
wants to merge 1 commit into from

Commits on Oct 28, 2017

  1. src: improve module loader readability

    Various improvements on readability, performance and
    conformity to the Node core coding style in the ESM loader C++ code:
    
    - `isolate` for the `Isolate*`, `context` for the `Local<Context>`
    - Less reliance on `auto` where it’s unnecessary/increases cognitive
      overhead
    - Shorter paths to failure via `.ToLocal()` & co
    - Do not keep pending exceptions around e.g. for failed `JSON` parsing
    - Use `Maybe` types to get explicit error status forwarding
    - Remove an unnecessary handle scope
    - Add `nullptr` checks for unwrapped host objects
    - Remove unused code
    - Use `CamelCase` for function names
    - Use `const Foo&` instead of copying values whenever possible
    - Pass along the `Environment*` explicitly
    addaleax committed Oct 28, 2017
    Configuration menu
    Copy the full SHA
    b619e41 View commit details
    Browse the repository at this point in the history