Bug 995200 - Enable strict mode for self-hosted code in opt builds, too. r=jorendorff

--HG--
extra : rebase_source : bd1ba070396f8556b112dd1dc5b30b3ff5e40fb0
This commit is contained in:
Till Schneidereit 2014-04-11 16:07:30 +02:00
parent 16c3058c54
commit fec05328b8

View File

@ -907,9 +907,9 @@ js::FillSelfHostingCompileOptions(CompileOptions &options)
options.setSourcePolicy(CompileOptions::NO_SOURCE);
options.setVersion(JSVERSION_LATEST);
options.werrorOption = true;
options.strictOption = true;
#ifdef DEBUG
options.strictOption = true;
options.extraWarningsOption = true;
#endif
}