test262/tools/generation/test/expected/indentation/tabs-indent-string-template.js
Mike Pennisi da4e798e5b [generation] Prevent invalid transformation
In order to promote readability of the generated test material, the test
generation tool may insert whitespace if the context a given expanded
variable calls for it. Avoid inserting such whitespace within literal
values that span multiple lines.
2017-03-04 12:17:35 -05:00

22 lines
663 B
JavaScript

// This file was procedurally generated from the following sources:
// - tools/generation/test/fixtures/indent-string-template.case
// - tools/generation/test/fixtures/indentation/tabs.template
/*---
description: String template spanning multiple lines (Preserving "hard" indentation across newlines)
flags: [generated]
---*/
(function() {
`this string template is declared across multiple lines
which disqualifies it as a candidate for indentation
it also happens to contain ' and ".`;
if (true) {
`this string template is declared across multiple lines
which disqualifies it as a candidate for indentation
it also happens to contain ' and ".`;
}
}());