« Bugzilla Issues Index
#3440 — 21.2.2.10: Out of range unicode escapes in regexp
  
  
  - bug_id:
    3440
  
- creation_ts:
    2014-12-11 07:56:00 -0800
  
- short_desc:
    21.2.2.10: Out of range unicode escapes in regexp
  
- delta_ts:
    2014-12-23 20:23:33 -0800
  
- product:
    Draft for 6th Edition
  
- component:
    technical issue
  
- version:
    Rev 28: October 14, 2014 Draft
  
- rep_platform:
    All
  
- op_sys:
    All
  
- bug_status:
    RESOLVED
  
- resolution:
    FIXED
  
- priority:
    Normal
  
- bug_severity:
    enhancement
  
- everconfirmed:
    true
  
- reporter:
    Andreas Rossberg
  
- assigned_to:
    Allen Wirfs-Brock
  
  
  
  - commentid:
    11005
  
- comment_count:
    0
  
- who:
    Andreas Rossberg
  
- bug_when:
    2014-12-11 07:56:24 -0800
  
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?
  
  
  - commentid:
    11023
  
- comment_count:
    1
  
- who:
    Allen Wirfs-Brock
  
- bug_when:
    2014-12-12 09:31:07 -0800
  
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.
  
  
  - commentid:
    11213
  
- comment_count:
    2
  
- who:
    Allen Wirfs-Brock
  
- bug_when:
    2014-12-23 20:23:33 -0800
  
fixed in rev30