archives

« Bugzilla Issues Index

#3440 — 21.2.2.10: Out of range unicode escapes in regexp


The evaluation of CharacterEscapes states:

"
The production RegExpUnicodeEscapeSequence :: u{ HexDigits } evaluates as follows:

Return the character whose code is the MV of HexDigits.
"

However, I couldn't find anything in the spec that prevents the MV from being out of range for a character, or explains what the semantics is in that case. I suppose it should be a syntax error?


Fixed in rev30 editor's draft

Added an annotation to the RegExp grammar that says it is a Syntax Error if the MV of HexDigits is too big.


fixed in rev30