Author: [email protected]
Date: Mon Mar 23 01:44:33 2009
New Revision: 1572

Modified:
    branches/bleeding_edge/src/jsregexp.cc

Log:
Fix bug in regexp the breaks interpreter.


Modified: branches/bleeding_edge/src/jsregexp.cc
==============================================================================
--- branches/bleeding_edge/src/jsregexp.cc      (original)
+++ branches/bleeding_edge/src/jsregexp.cc      Mon Mar 23 01:44:33 2009
@@ -617,6 +617,9 @@
  #endif
    } else {
      bool is_ascii = StringShape(*subject).IsAsciiRepresentation();
+    if (!EnsureCompiledIrregexp(jsregexp, is_ascii)) {
+      return Handle<Object>::null();
+    }
      for (int i = number_of_capture_registers - 1; i >= 0; i--) {
        offsets_vector[i] = -1;
      }

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

Reply via email to