mirror of
https://github.com/tc39/test262.git
synced 2025-06-06 23:20:27 +02:00
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.
20 lines
692 B
JavaScript
20 lines
692 B
JavaScript
// This file was procedurally generated from the following sources:
|
|
// - tools/generation/test/fixtures/indent-code.case
|
|
// - tools/generation/test/fixtures/indentation/spaces.template
|
|
/*---
|
|
description: Multiple lines of code (Preserving "soft" indentation across newlines)
|
|
flags: [generated]
|
|
---*/
|
|
|
|
(function() {
|
|
'These literals are each contained on a single line...';
|
|
"...which means they may be indented...";
|
|
`...without effecting the semantics of the generated source code.`;
|
|
|
|
if (true) {
|
|
'These literals are each contained on a single line...';
|
|
"...which means they may be indented...";
|
|
`...without effecting the semantics of the generated source code.`;
|
|
}
|
|
}());
|