Avoid assertion failures for bug 634444. r=me, a=blocking.
authorNicholas Nethercote <nnethercote@mozilla.com>
Thu, 17 Feb 2011 20:47:24 -0800
changeset 62942 0d4b01278890623d0919847432d2a103879d6525
parent 62941 5f0a5b42ecc00a47b495cf31677a7b6e36f6e857
child 62943 627635529dbe021422c5eb99f560f81a2b979442
push id1
push userroot
push dateTue, 10 Dec 2013 15:46:25 +0000
reviewersme, blocking
bugs634444
milestone2.0b12pre
Avoid assertion failures for bug 634444. r=me, a=blocking.
js/src/jsscan.cpp
--- a/js/src/jsscan.cpp
+++ b/js/src/jsscan.cpp
@@ -376,17 +376,18 @@ jschar *
 TokenStream::findWlineLimit(jschar *tokptr, int max)
 {
     TokenBuf tmpUserbuf = userbuf;
     jschar *tmpLinebase = linebase;
     jschar *tmpPrevLinebase = prevLinebase;
     uintN tmpFlags = flags;
     uintN tmpLineno = lineno;
 
-    JS_ASSERT(userbuf.base <= tokptr && tokptr <= userbuf.limit);
+    /* FIXME: this assertion is commented out due to bug 635144. */
+    /*JS_ASSERT(userbuf.base <= tokptr && tokptr <= userbuf.limit);*/
     userbuf.ptr = tokptr;   /* Start scanning at tokptr. */
 
     jschar *wlinelimit;
     jschar *wlinelimitmax = tokptr + max + 1;
     while (true) {
         if (userbuf.ptr > wlinelimitmax) {
             wlinelimit = wlinelimitmax;
             break;