Please sign in to comment.
Replace calls to goog.define with assignments to the result of goog.d…
…efine. Background: To support goog.define within modules, it will soon stop exporting the named variable on the global object. In preparation for this, we need to manually export the names instead. This is effectively performing the rewriting that the compiler was already doing in RewriteClosurePrimitives. Nonqualified names that are never mutated have been made into module locals for production code and globals for test code. This is consistent with production code being most likely to work compiled (where the compiler rewrites them to locals) and test code being most likely to work uncompiled (where Closure Library makes them global). This change was generated by http://cs/experimental/users/sdh/util/googdef. See go/lsc-goog-define for more details. Tested: TAP train for global presubmit queue http://test/OCL:240239902:BASE:243307276:1555129662715:4e7280e3 PiperOrigin-RevId: 243685812
- Loading branch information...