Fix Detecting to cope with no active frames on cx (281984, r=jst).

git-svn-id: svn://10.0.0.236/trunk@169208 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
brendan%mozilla.org
2005-02-15 19:21:26 +00:00
parent 955b2e06d4
commit 47845aaf1d

View File

@@ -2368,6 +2368,8 @@ Detecting(JSContext *cx, jsbytecode *pc)
JSOp op;
JSAtom *atom;
if (!cx->fp)
return JS_FALSE;
script = cx->fp->script;
for (endpc = script->code + script->length; pc < endpc; pc++) {
/* General case: a branch or equality op follows the access. */