Reviewers: ulan,

Description:
Fix edge case for case independent regexp character classes.
http://code.google.com/p/v8/issues/detail?id=2032

Please review this at https://chromiumcodereview.appspot.com/9860029/

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
  M     src/jsregexp.cc


Index: src/jsregexp.cc
===================================================================
--- src/jsregexp.cc     (revision 11146)
+++ src/jsregexp.cc     (working copy)
@@ -4226,7 +4226,7 @@
     // as a "singleton block").
     unibrow::uchar range[unibrow::Ecma262UnCanonicalize::kMaxWidth];
     int pos = bottom;
-    while (pos < top) {
+    while (pos <= top) {
       int length = isolate->jsregexp_canonrange()->get(pos, '\0', range);
       uc16 block_end;
       if (length == 0) {


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to