Backed out changeset d01a2a30d626 (bug 848449)

This commit is contained in:
Ed Morley
2013-03-07 13:03:27 +00:00
parent bf3065c752
commit 7e0e269b96
47 changed files with 180 additions and 0 deletions

View File

@@ -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;