File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -1277,7 +1277,7 @@ Consume an escaped code point</h4>
12771277 This section describes how to <dfn>consume an escaped code point</dfn> .
12781278 It assumes that the U+005C REVERSE SOLIDUS (\) has already been consumed
12791279 and that the next input code point has already been verified
1280- to not be a <a>newline</a> or EOF .
1280+ to be part of a valid escape .
12811281 It will return a <a>code point</a> .
12821282
12831283 Consume the <a>next input code point</a> .
@@ -1297,6 +1297,11 @@ Consume an escaped code point</h4>
12971297 return U+FFFD REPLACEMENT CHARACTER (�).
12981298 Otherwise, return the <a>code point</a> with that value.
12991299
1300+ <dt> EOF
1301+ <dd>
1302+ This is a <a>parse error</a> .
1303+ Return U+FFFD REPLACEMENT CHARACTER (�).
1304+
13001305 <dt> anything else
13011306 <dd>
13021307 Return the <a>current input code point</a> .
@@ -1320,7 +1325,7 @@ Check if two code points are a valid escape</h4>
13201325 return false.
13211326
13221327 Otherwise,
1323- if the second <a>code point</a> is a <a>newline</a> or EOF ,
1328+ if the second <a>code point</a> is a <a>newline</a> ,
13241329 return false.
13251330
13261331 Otherwise, return true.
You can’t perform that action at this time.
0 commit comments