Fix regression biting .js files that wrongly include HTML comments (309712, r/sr=mrbkap/shaver).

This commit is contained in:
brendan%mozilla.org 2005-09-23 15:58:47 +00:00
Родитель 2548bfaf91
Коммит f14192e17b
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -1635,8 +1635,13 @@ retry:
case '<':
#if JS_HAS_XML_SUPPORT
/*
* XXX Use TSF_DIRTYLINE for now rather than TSF_DIRTYINPUT, because
* believe it or not, some .js files included via <script src="...">
* actually contain HTML comment-hiding hacks.
*/
if ((ts->flags & TSF_OPERAND) &&
(JS_HAS_XML_OPTION(cx) || (ts->flags & TSF_DIRTYINPUT))) {
(JS_HAS_XML_OPTION(cx) || (ts->flags & TSF_DIRTYLINE))) {
/* Check for XML comment or CDATA section. */
if (MatchChar(ts, '!')) {
INIT_TOKENBUF();