Improve TABLESWITCH comment precision and add XXX about JSVERSION_IS_ECMAv2.

This commit is contained in:
brendan%netscape.com 1998-09-09 06:35:30 +00:00
Родитель b80096d040
Коммит a95987dd0b
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -2242,7 +2242,8 @@ js_Interpret(JSContext *cx, jsval *result)
/*
* ECMAv2 forbids conversion of discriminant, so we will skip to
* the default case if the discriminant isn't an int jsval.
* (This opcode is only emitted for all-integer switches.)
* (This opcode is emitted only for dense jsint-domain switches.)
* XXX don't use JSVERSION_IS_ECMAv2, it's wrong and overloaded
*/
if (cx->version == JSVERSION_DEFAULT ||
cx->version >= JSVERSION_1_4) {