this class of error seems to hit me a bunch:
// ==ClosureCompiler==
// @compilation_level ADVANCED_OPTIMIZATIONS
// @output_file_name default.js
// ==/ClosureCompiler==
var x = {};
alert(x.y);
x.y = 3;
closure-compiler does not warn about this today, but I think it should. I was thinking about either moving theVariableReferenceCheck after CollapseProperties, or doing something clever in CheckGlobalNames.
any thoughts or advice on this?