Files
test-repo/tests/expression_statement/use_strict.js
T
Davy Duperron 8c66e44db1 Fix use strict as expression statement (#602)
* Add parentheses if node is StringLiteral surrounded by ExpressionStatement :tools:.

* Add new test.

* Update tests to run against Babylon, plus no regression case.

* Split actual test and no regression test in two files.

* Disable Flow till facebook/flow#3234 is merged.
2017-02-04 13:16:24 -08:00

3 lines
93 B
JavaScript
Executable File

// Parentheses around expression statement should be preserved in this case.
("use strict");