Revise js_DecompileValueGenerator assertion in light of JS_HAS_NO_SUCH_METHOD.

This commit is contained in:
brendan%mozilla.org 2003-11-09 20:31:16 +00:00
parent 1e319f77c8
commit a602059a69

View File

@ -2579,8 +2579,11 @@ js_DecompileValueGenerator(JSContext *cx, intN spindex, jsval v,
goto do_fallback;
if (spindex != JSDVG_IGNORE_STACK) {
JS_ASSERT(spindex < 0);
depth = (intN)script->depth;
JS_ASSERT(-depth <= spindex && spindex < 0);
#if !JS_HAS_NO_SUCH_METHOD
JS_ASSERT(-depth <= spindex);
#endif
spindex -= depth;
base = (jsval *) cx->stackPool.current->base;