Comment out busted assertions. See bug 695922. r=red.

This commit is contained in:
Jason Orendorff 2011-10-19 18:56:35 -05:00
parent 2294005e86
commit 5a2478b22d

View File

@ -213,14 +213,16 @@ struct TokenPos {
TokenPos() {}
TokenPos(const TokenPtr &begin, const TokenPtr &end) : begin(begin), end(end) {
JS_ASSERT(begin <= end);
// Assertion temporarily disabled by jorendorff. See bug 695922.
//JS_ASSERT(begin <= end);
}
/* Return a TokenPos that covers left, right, and anything in between. */
static TokenPos box(const TokenPos &left, const TokenPos &right) {
JS_ASSERT(left.begin <= left.end);
JS_ASSERT(left.end <= right.begin);
JS_ASSERT(right.begin <= right.end);
// Assertions temporarily disabled by jorendorff. See bug 695922.
//JS_ASSERT(left.begin <= left.end);
//JS_ASSERT(left.end <= right.begin);
//JS_ASSERT(right.begin <= right.end);
return TokenPos(left.begin, right.end);
}