aboutsummaryrefslogtreecommitdiff
path: root/tools/eliminator/node_modules/uglify-js/tmp/hoist.js
diff options
context:
space:
mode:
authormax99x <max99x@gmail.com>2011-08-23 05:23:55 +0300
committermax99x <max99x@gmail.com>2011-08-23 05:23:55 +0300
commit4d12c91bfb26979d00714843a038f916629e040d (patch)
treef44f27a9ef31e484eda3f9a22bcbe77d674860b8 /tools/eliminator/node_modules/uglify-js/tmp/hoist.js
parent4426e4b34c4dbbcfeab757cfc657b4a925cfca13 (diff)
Added a redundant-variable eliminator script and its dependencies.
Diffstat (limited to 'tools/eliminator/node_modules/uglify-js/tmp/hoist.js')
-rw-r--r--tools/eliminator/node_modules/uglify-js/tmp/hoist.js33
1 files changed, 33 insertions, 0 deletions
diff --git a/tools/eliminator/node_modules/uglify-js/tmp/hoist.js b/tools/eliminator/node_modules/uglify-js/tmp/hoist.js
new file mode 100644
index 00000000..4bf2b94d
--- /dev/null
+++ b/tools/eliminator/node_modules/uglify-js/tmp/hoist.js
@@ -0,0 +1,33 @@
+function foo(arg1, arg2, arg3, arg4, arg5, arg6) {
+ var a = 5;
+ {
+ var d = 10, mak = 20, buz = 30;
+ var q = buz * 2;
+ }
+ if (moo) {
+ var a, b, c;
+ }
+ for (var arg1 = 0, d = 20; arg1 < 10; ++arg1)
+ console.log(arg3);
+ for (var i in mak) {}
+ for (j in d) {}
+ var d;
+
+ function test() {
+
+ };
+
+ //test();
+
+ (function moo(first, second){
+ console.log(first);
+ })(1);
+
+ (function moo(first, second){
+ console.log(moo());
+ })(1);
+}
+
+
+var foo;
+var bar;