Bug 848449 - GC: Remove AutoAssertNoGC and AssertCanGC - Remove use of AssertCanGC r=terrence

This commit is contained in:
Jon Coppeard
2013-03-06 18:10:30 +00:00
parent 0ad641802d
commit 9d6cd68b98
47 changed files with 0 additions and 180 deletions

View File

@@ -1500,8 +1500,6 @@ 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;