Add interface for JSStackFrame.annotation/debugHook/callerVersion, bug 586533. r=lw

This commit is contained in:
Brian Hackett
2010-08-14 11:59:44 -04:00
parent 0dd005bad5
commit 3f6445cfbf
6 changed files with 75 additions and 30 deletions

View File

@@ -1143,7 +1143,7 @@ js_NewGenerator(JSContext *cx)
newfp->argc = fp->argc;
newfp->argv = vp + 2;
newfp->rval = fp->rval;
newfp->annotation = NULL;
newfp->setAnnotation(NULL);
newfp->setScopeChain(fp->maybeScopeChain());
JS_ASSERT(!fp->hasBlockChain());
newfp->setBlockChain(NULL);