I've just run into something weird when running plovr with the combination
"mode": "WHITESPACE",
"output-wrapper": "(function(){%output%})();"
After all dependencies are loaded,
goog.provide('goog.debug.Error');
goog.debug.Error = function() {...} Cannot set property 'Error' of undefined
I went into goog.provide and noticed that goog.exportPath() is actually setting "goog" in the Window object (DOMWindow), whereas the 'goog' object is inside the wrapping closure.
As a result, WHITESPACE mode won't work in a function wrapper.
Is this expected?
--
A ciência consiste em perturbar um sistema e analisar sua reação. Eu, sou uma perturbação.
André Tannús | Ideas at Epungo
"Somewhere, something incredible is waiting to be known."
Carl Sagan