Improve TABLESWITCH comment precision and add XXX about JSVERSION_IS_ECMAv2.

git-svn-id: svn://10.0.0.236/trunk@9598 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
brendan%netscape.com
1998-09-09 06:35:30 +00:00
parent 623a1739b0
commit dfee645789

View File

@@ -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) {