Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

src: enable strict mode in all builtin modules#9302

Closed
misterdjules wants to merge 1 commit intonodejs:masterfrom
misterdjules:enable-use-strict-all-builtin-modules
Closed

src: enable strict mode in all builtin modules#9302
misterdjules wants to merge 1 commit intonodejs:masterfrom
misterdjules:enable-use-strict-all-builtin-modules

Conversation

@misterdjules
Copy link

This is a follow-up commit for b233131.

It enables strict mode in all built-in modules. This will break existing code, but the goal is to progressively fix as many issues as possible that can arise when using --use-strict.

It could probably break code that loads these modules within a browser, since any of the 'use strict'; directive would turn all code into strict mode. I'm not sure how much we support this use case though, any information on that would be much appreciated.

This is a follow-up commit for b233131.

It enables strict mode in all built-in modules.
@misterdjules
Copy link
Author

Tests started on UNICEs and on Windows.

@misterdjules misterdjules added this to the 0.13.1 milestone Feb 28, 2015
@misterdjules
Copy link
Author

/cc @joyent/node-coreteam.

@cjihrig
Copy link

cjihrig commented Mar 2, 2015

LGTM

@jasnell
Copy link
Member

jasnell commented Mar 3, 2015

/cc @mdawsonibm

@trevnorris
Copy link

LGTM.

misterdjules pushed a commit to misterdjules/node that referenced this pull request Mar 4, 2015
This is a follow-up commit for b233131.

It enables strict mode in all built-in modules.

PR: nodejs#9302
PR-URL: nodejs#9302
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
@misterdjules
Copy link
Author

Thank you @cjihrig and @trevnorris for the review! Landed in ef43443.

jasnell pushed a commit to jasnell/node-joyent that referenced this pull request Mar 14, 2015
This is a follow-up commit for b233131.

It enables strict mode in all built-in modules.

PR: nodejs#9302
PR-URL: nodejs#9302
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants