Skip to content

Do not emit 'use strict' prologue in .json files with --alwaysStrict#24524

Merged
mhegazy merged 1 commit into
microsoft:masterfrom
a-tarasyuk:bug/24514-use-strict-prologue-emitted-in-json-files
May 31, 2018
Merged

Do not emit 'use strict' prologue in .json files with --alwaysStrict#24524
mhegazy merged 1 commit into
microsoft:masterfrom
a-tarasyuk:bug/24514-use-strict-prologue-emitted-in-json-files

Conversation

@a-tarasyuk
Copy link
Copy Markdown
Contributor

Fixes #24514

@a-tarasyuk a-tarasyuk force-pushed the bug/24514-use-strict-prologue-emitted-in-json-files branch from ccf16e6 to 7ef7f90 Compare May 31, 2018 17:29
@DanielRosenwasser
Copy link
Copy Markdown
Member

DanielRosenwasser commented May 31, 2018

Looks good to me, though really I can't help but wonder whether there's a more resilient way for us to have prevented statements from being inserted into the source file.

@mhegazy mhegazy merged commit 86fe529 into microsoft:master May 31, 2018
mhegazy added a commit that referenced this pull request May 31, 2018
@JamesMessinger
Copy link
Copy Markdown

When is this PR planned to be released? In the meantime, is there a workaround?

@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented Jun 11, 2018

typescript@2.9.2 should be out in a few days and should include the fix.

@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
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.

5 participants