mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Revise js_DecompileValueGenerator assertion in light of JS_HAS_NO_SUCH_METHOD.
This commit is contained in:
parent
1e319f77c8
commit
a602059a69
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user