Skip to content

Add alwaysStrict option#16562

Merged
weswigham merged 4 commits into
microsoft:masterfrom
t-mrt:add_alwaysStrict
Jun 29, 2017
Merged

Add alwaysStrict option#16562
weswigham merged 4 commits into
microsoft:masterfrom
t-mrt:add_alwaysStrict

Conversation

@t-mrt
Copy link
Copy Markdown
Contributor

@t-mrt t-mrt commented Jun 15, 2017

Fixes #16531

@msftclas
Copy link
Copy Markdown

@t-mrt,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by Microsoft. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

@t-mrt
Copy link
Copy Markdown
Contributor Author

t-mrt commented Jun 15, 2017

Travis CI build failed. I will correct this shortly.

@DanielRosenwasser
Copy link
Copy Markdown
Member

Can you also add these to the tsconfig.jsons of each directory?

@t-mrt
Copy link
Copy Markdown
Contributor Author

t-mrt commented Jun 21, 2017

review please.

@DanielRosenwasser
Copy link
Copy Markdown
Member

@weswigham can you look at this?

@weswigham
Copy link
Copy Markdown
Member

Are all the whitespace changes required? They are adding a lot of noise. Other than removing that, it looks good.

changeTracker.insertNodeAfter(sourceFile, findChild("M", sourceFile), createTestClass(), { prefix: newLineCharacter });
});
}
{
Copy link
Copy Markdown
Member

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

Copy link
Copy Markdown
Contributor Author

@t-mrt t-mrt Jun 29, 2017

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah! Ok!

@weswigham weswigham merged commit 51fb7e9 into microsoft:master Jun 29, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants