Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 8f4f123

Browse files
lauraharkernbeloglazov
authored andcommitted
Replace call to goog.define with assignment to the result of goog.define
1 parent ddd20eb commit 8f4f123

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/com/google/javascript/clutz/testdata/partial/declare_legacy_namespace_goog_define.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ goog.module('legacy.namespace.goog.define');
22
goog.module.declareLegacyNamespace();
33

44
/** @define {string} */
5-
goog.define('GOOG_DEFINE', 'goog.define');
5+
const GOOG_DEFINE = goog.define('GOOG_DEFINE', 'goog.define');
66

77
//!!TODO actually emit the legacy namespace alias for the export
8-
exports = GOOG_DEFINE;
8+
exports = GOOG_DEFINE;

0 commit comments

Comments
 (0)