aboutsummaryrefslogtreecommitdiff
path: root/test/compress
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress')
-rw-r--r--test/compress/sandbox.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/compress/sandbox.js b/test/compress/sandbox.js
index 252c3e14..02097c1e 100644
--- a/test/compress/sandbox.js
+++ b/test/compress/sandbox.js
@@ -66,3 +66,17 @@ toplevel_Infinity_NaN_undefined: {
}
expect_stdout: "foo 42 null"
}
+
+log_global: {
+ input: {
+ console.log(function() {
+ return this;
+ }());
+ }
+ expect: {
+ console.log(function() {
+ return this;
+ }());
+ }
+ expect_stdout: "[object global]"
+}