archives

« Bugzilla Issues Index

#232 — 7.6: String value of an IdentifierName


7.6 Identifier Names and Identifiers / Static Semantics: String Value / rule 2
says:
IdentifierName ::
IdentifierStart
IdentifierName IdentifierPart

1. Return the String value consisting of the sequence of characters
corresponding to IdentifierName.

This algorithm doesn't make sense. Either you need rules that say how to accumulate the String value of an IdentifierName depending on whether it's an instance of
IdentifierName :: IdentifierStart
or
IdentifierName :: IdentifierName IdentifierPart

OR you can say non-algorithmically that the String value of an IdentifierName is the sequence of characters making up the IdentifierName (after conversion of \ UnicodeEscapeSequences).


fixed in rev9