Bug 790349 - Convert all fooAtom uses to simply foo. r=jorendorff

This commit is contained in:
Jeff Walden
2012-09-11 10:32:33 -07:00
parent 6c92888c28
commit 5a2de170a3
48 changed files with 367 additions and 397 deletions

View File

@@ -224,7 +224,7 @@ frontend::CompileScript(JSContext *cx, HandleObject scopeChain, StackFrame *call
// It's an error to use |arguments| in a function that has a rest parameter.
if (callerFrame && callerFrame->isFunctionFrame() && callerFrame->fun()->hasRest()) {
PropertyName *arguments = cx->runtime->atomState.argumentsAtom;
HandlePropertyName arguments = cx->names().arguments;
for (AtomDefnRange r = pc.lexdeps->all(); !r.empty(); r.popFront()) {
if (r.front().key() == arguments) {
parser.reportError(NULL, JSMSG_ARGUMENTS_AND_REST);