Bug 889584, part 4 - Remove an unnecessary setFunctionBody call. r=Waldo.

This commit is contained in:
Jason Orendorff 2013-07-12 12:20:58 -05:00
parent 0edeb92d28
commit 257bb24f7c

View File

@ -1925,7 +1925,6 @@ Parser<ParseHandler>::functionDef(HandlePropertyName funName, const TokenStream:
// If the outer scope is strict, immediately parse the function in strict
// mode. Otherwise, we parse it normally. If we see a "use strict"
// directive, we backup and reparse it as strict.
handler.setFunctionBody(pn, null());
bool initiallyStrict = pc->sc->strict;
bool becameStrict;
if (!functionArgsAndBody(pn, fun, funName, startOffset, type, kind, initiallyStrict,