Backed out changeset d01a2a30d626 (bug 848449)
This commit is contained in:
@@ -1503,6 +1503,8 @@ static JSBool
|
||||
SendToGenerator(JSContext *cx, JSGeneratorOp op, HandleObject obj,
|
||||
JSGenerator *gen, const Value &arg)
|
||||
{
|
||||
AssertCanGC();
|
||||
|
||||
if (gen->state == JSGEN_RUNNING || gen->state == JSGEN_CLOSING) {
|
||||
JS_ReportErrorNumber(cx, js_GetErrorMessage, NULL, JSMSG_NESTING_GENERATOR);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user