Skip to content

Commit

Permalink
Remove a false claim about multi-line strings
Browse files Browse the repository at this point in the history
The claim that multi-line strings are not part of ECMAScript is
false. See the "LineContinuation" production in:
http://www.ecma-international.org/ecma-262/5.1/#sec-7.8.4.

Removed the false claim.
  • Loading branch information
Dominator008 committed Mar 28, 2016
1 parent 3c3c96b commit d6fddbb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions javascriptguide.xml
Original file line number Diff line number Diff line change
Expand Up @@ -619,8 +619,7 @@
</BAD_CODE_SNIPPET>
<p>The whitespace at the beginning of each line can't be safely stripped
at compile time; whitespace after the slash will result in tricky
errors; and while most script engines support this, it is not part
of ECMAScript. </p>
errors. </p>
<p>Use string concatenation instead:</p>
<CODE_SNIPPET>
var myString = 'A rather long string of English text, an error message ' +
Expand Down

0 comments on commit d6fddbb

Please sign in to comment.