aboutsummaryrefslogtreecommitdiff
path: root/test/compress/let.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/let.js')
-rw-r--r--test/compress/let.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/compress/let.js b/test/compress/let.js
index 8374db9a..deb48120 100644
--- a/test/compress/let.js
+++ b/test/compress/let.js
@@ -893,3 +893,26 @@ issue_4231: {
expect_stdout: "function"
node_version: ">=4"
}
+
+issue_4245: {
+ options = {
+ booleans: true,
+ }
+ input: {
+ "use strict";
+ let a = f();
+ function f() {
+ typeof a;
+ }
+ }
+ expect: {
+ "use strict";
+ let a = f();
+ function f() {
+ a,
+ 1;
+ }
+ }
+ expect_stdout: ReferenceError("a is not defined")
+ node_version: ">=4"
+}