Closed leodido closed 9 years ago
Error message: cannot use 'in' operator to search for 'leodido' in undefined.
Bug is caused by the fact that in ES5 strict the expression goog.global = this does not work inside a typical IIFE (e.g., (function(){%output%})();').
goog.global = this
(function(){%output%})();'
Since the goog.global variable is used to export symbols by google closure library functions everything breaks.
goog.global
In ES5 strict we need to set the this to window this way:
this
window
(function(){...}).call(window);
Error message: cannot use 'in' operator to search for 'leodido' in undefined.
Bug is caused by the fact that in ES5 strict the expression
goog.global = this
does not work inside a typical IIFE (e.g.,(function(){%output%})();'
).Since the
goog.global
variable is used to export symbols by google closure library functions everything breaks.