aboutsummaryrefslogtreecommitdiff
path: root/test/compress/issue-1041.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/issue-1041.js')
-rw-r--r--test/compress/issue-1041.js39
1 files changed, 39 insertions, 0 deletions
diff --git a/test/compress/issue-1041.js b/test/compress/issue-1041.js
new file mode 100644
index 00000000..9dd176fd
--- /dev/null
+++ b/test/compress/issue-1041.js
@@ -0,0 +1,39 @@
+const_declaration: {
+ options = {
+ evaluate: true
+ };
+
+ input: {
+ const goog = goog || {};
+ }
+ expect: {
+ const goog = goog || {};
+ }
+}
+
+const_pragma: {
+ options = {
+ evaluate: true
+ };
+
+ input: {
+ /** @const */ var goog = goog || {};
+ }
+ expect: {
+ var goog = goog || {};
+ }
+}
+
+// for completeness' sake
+not_const: {
+ options = {
+ evaluate: true
+ };
+
+ input: {
+ var goog = goog || {};
+ }
+ expect: {
+ var goog = goog || {};
+ }
+}