diff --git a/spec.html b/spec.html index d847205005b..a1d3c576774 100644 --- a/spec.html +++ b/spec.html @@ -14329,7 +14329,7 @@

Static Semantics: NumericValue

- +

String Literals

A string literal is 0 or more Unicode code points enclosed in single or double quotes. Unicode code points may also be represented by an escape sequence. All code points may appear literally in a string literal except for the closing quote code points, U+005C (REVERSE SOLIDUS), U+000D (CARRIAGE RETURN), and U+000A (LINE FEED). Any code points may appear in the form of an escape sequence. String literals evaluate to ECMAScript String values. When generating these String values Unicode code points are UTF-16 encoded as defined in . Code points belonging to the Basic Multilingual Plane are encoded as a single code unit element of the string. All other code points are encoded as two code unit elements of the string.

@@ -14431,7 +14431,7 @@

Static Semantics: Early Errors

  • It is a Syntax Error if the source code matching this production is strict mode code.
- In non-strict code, this syntax is allowed, but deprecated. + In non-strict code, this syntax is legacy.

It is possible for string literals to precede a Use Strict Directive that places the enclosing code in strict mode, and implementations must take care to enforce the above rules for such literals. For example, the following source text contains a Syntax Error:


@@ -24606,7 +24606,7 @@ 

Forbidden Extensions

When processing strict mode code, an implementation must not relax the early error rules of .
  • - |TemplateCharacter| must not be extended to include |LegacyOctalEscapeSequence| or |NonOctalDecimalEscapeSequence| as defined in . + |TemplateEscapeSequence| must not be extended to include |LegacyOctalEscapeSequence| or |NonOctalDecimalEscapeSequence| as defined in .
  • When processing strict mode code, the extensions defined in , , , and must not be supported. @@ -41864,17 +41864,6 @@

    Additional ECMAScript Features for Web Browsers

    Additional Syntax

    - -

    String Literals

    -

    The following syntax from , and its associated semantics, used to be normative optional:

    - - EscapeSequence :: LegacyOctalEscapeSequence - - EscapeSequence :: NonOctalDecimalEscapeSequence - -

    and the productions for |LegacyOctalEscapeSequence|, |ZeroToThree|, and |FourToSeven|.

    -
    -

    HTML-like Comments

    The syntax and semantics of is extended as follows except that this extension is not allowed when parsing source code using the goal symbol |Module|: