зеркало из https://github.com/mozilla/pjs.git
Fix Detecting to cope with no active frames on cx (281984, r=jst).
This commit is contained in:
Родитель
ab39611fed
Коммит
2af476b070
|
@ -2368,6 +2368,8 @@ Detecting(JSContext *cx, jsbytecode *pc)
|
||||||
JSOp op;
|
JSOp op;
|
||||||
JSAtom *atom;
|
JSAtom *atom;
|
||||||
|
|
||||||
|
if (!cx->fp)
|
||||||
|
return JS_FALSE;
|
||||||
script = cx->fp->script;
|
script = cx->fp->script;
|
||||||
for (endpc = script->code + script->length; pc < endpc; pc++) {
|
for (endpc = script->code + script->length; pc < endpc; pc++) {
|
||||||
/* General case: a branch or equality op follows the access. */
|
/* General case: a branch or equality op follows the access. */
|
||||||
|
|
Загрузка…
Ссылка в новой задаче