Revert "be more strict in checkRep"

This reverts commit 22803da42f.
pull/2404/head
webzwo0i 2014-12-27 17:56:20 +01:00
parent 22803da42f
commit 07a6702363
1 changed files with 6 additions and 6 deletions

View File

@ -255,20 +255,20 @@ exports.checkRep = function (cs) {
var o = iter.next();
switch (o.opcode) {
case '=':
exports.assert(o.chars >= o.lines, o.chars, " chars and ", o.lines, " lines in op ",cs);
oldPos += o.chars;
calcNewLen += o.chars;
break;
case '-':
exports.assert(o.chars >= o.lines, o.chars, " chars and ", o.lines, " lines in op ",cs);
oldPos += o.chars;
exports.assert(oldPos < oldLen, oldPos, " >= ", oldLen, " in ", cs);
break;
case '+':
exports.assert(o.chars >= o.lines, o.chars, " chars and ", o.lines, " lines in op ",cs);
calcNewLen += o.chars;
exports.assert(calcNewLen < newLen, calcNewLen, " >= ", newLen, " in ", cs);
break;
{
calcNewLen += o.chars;
numInserted += o.chars;
exports.assert(calcNewLen < newLen, calcNewLen, " >= ", newLen, " in ", cs);
break;
}
}
assem.append(o);
}