Skip to content

Commit 7777a71

Browse files
committed
Issue #369 - Remove Debug asserts
1 parent 086e4c9 commit 7777a71

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/parser.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1564,8 +1564,13 @@ void TY_(ParseNamespace)(TidyDocImpl* doc, Node *basenode, GetTokenMode mode)
15641564
n->closed = yes;
15651565
TY_(ReportError)(doc, n->parent, n, MISSING_ENDTAG_BEFORE);
15661566
}
1567-
assert(outside == no ? n == mp : 1);
1568-
assert(outside == yes ? n == basenode->parent : 1);
1567+
1568+
/* Issue #369 - Since 'assert' is DEBUG only, and there are
1569+
simple cases where these can be fired, removing them
1570+
pending feedback from the original author!
1571+
assert(outside == no ? n == mp : 1);
1572+
assert(outside == yes ? n == basenode->parent : 1);
1573+
=================================================== */
15691574

15701575
if (outside == no)
15711576
{

0 commit comments

Comments
 (0)