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

constants: freeze the constants object #19813

Closed
wants to merge 1 commit into from

Commits on Apr 4, 2018

  1. constants: freeze the constants object

    Constants ought to be constant. The primary goal of this commit is to
    make constants exposed in require('constants') immutable, as they were
    prior to [email protected], and as the constants exposed on fs.constants,
    crypto.constants, etc. are.
    
    Since this is implemented by using Object.freeze, it also has the side
    effect of making the entire exports of require('constants') immutable,
    so no new constants can be defined on the object in userland.
    bengl committed Apr 4, 2018
    Configuration menu
    Copy the full SHA
    162dde7 View commit details
    Browse the repository at this point in the history