-
Notifications
You must be signed in to change notification settings - Fork 13k
Add alwaysStrict option #16562
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
Add alwaysStrict option #16562
Conversation
@t-mrt, |
Travis CI build failed. I will correct this shortly. |
Can you also add these to the |
review please. |
@weswigham can you look at this? |
Are all the whitespace changes required? They are adding a lot of noise. Other than removing that, it looks good. |
@@ -367,20 +367,22 @@ namespace M { | |||
changeTracker.insertNodeAfter(sourceFile, findChild("M", sourceFile), createTestClass(), { prefix: newLineCharacter }); | |||
}); | |||
} | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's still these whitespace changes, too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed {}
because function declarations cannot be nested inside a statement or block in strict mode. This is not cosmetic change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah! Ok!
Fixes #16531