From dfee645789fb55a610c8a765278ebcbb3f7df360 Mon Sep 17 00:00:00 2001 From: "brendan%netscape.com" Date: Wed, 9 Sep 1998 06:35:30 +0000 Subject: [PATCH] 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 --- mozilla/js/ref/jsinterp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mozilla/js/ref/jsinterp.c b/mozilla/js/ref/jsinterp.c index 6262aef03bf..0bc14265b9d 100644 --- a/mozilla/js/ref/jsinterp.c +++ b/mozilla/js/ref/jsinterp.c @@ -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) {