Bug 833151 - Avoid unnecessary copy of CompileOptions. r=benjamin.

--HG--
extra : rebase_source : 542536e11e35f31bec2c5811bcfc56e491d6358a
This commit is contained in:
Nicholas Nethercote 2013-01-23 18:14:38 -08:00
parent 4f1964926a
commit d39f7209a7

View File

@ -5677,7 +5677,7 @@ JS::Evaluate(JSContext *cx, HandleObject obj, CompileOptions options,
return false;
}
options = options.setFileAndLine(filename, 1);
options.setFileAndLine(filename, 1);
return Evaluate(cx, obj, options, buffer.begin(), buffer.length(), rval);
}