Fix merge botch. a=bustage
authorRobert Sayre <sayrer@gmail.com>
Wed, 17 Nov 2010 13:59:26 -0800
changeset 57839 35f8ec6fa9e632272bdb876eba8b756d240342e6
parent 57838 78a42f77bb90c49b066023e740fc05f7c863ab37
child 57840 94e93142bfb6912bf49c8b5e1cdf5a4c799270ca
push idunknown
push userunknown
push dateunknown
reviewersbustage
milestone2.0b8pre
Fix merge botch. a=bustage
js/src/jsregexp.h
--- a/js/src/jsregexp.h
+++ b/js/src/jsregexp.h
@@ -137,16 +137,21 @@ class RegExpStatics
 #endif
     }
 
     int get(size_t pairNum, bool which) const {
         JS_ASSERT(pairNum < pairCount());
         return matchPairs[2 * pairNum + which];
     }
 
+    int getCrash(size_t pairNum, bool which) const {
+         JS_CRASH_UNLESS(pairNum < pairCountCrash());
+         return get(pairNum, which);
+    }
+
     /*
      * Check whether the index at |checkValidIndex| is valid (>= 0).
      * If so, construct a string for it and place it in |*out|.
      * If not, place undefined in |*out|.
      */
     bool makeMatch(JSContext *cx, size_t checkValidIndex, size_t pairNum, Value *out) const;
 
     static const uintN allFlags = JSREG_FOLD | JSREG_GLOB | JSREG_STICKY | JSREG_MULTILINE;