aboutsummaryrefslogtreecommitdiff
path: root/test/compress/functions.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2021-03-05 05:18:01 +0000
committerGitHub <noreply@github.com>2021-03-05 13:18:01 +0800
commitdd30ed6a9bf108f05b103eef81d84f91ae4c6322 (patch)
tree206a02f962fcbbec0a3747789e6a17b56b31e815 /test/compress/functions.js
parentcb50a2d192ef8be1aac7577d6ec9c06f27b71232 (diff)
downloadtracifyjs-dd30ed6a9bf108f05b103eef81d84f91ae4c6322.tar.gz
tracifyjs-dd30ed6a9bf108f05b103eef81d84f91ae4c6322.zip
enhance `collapse_vars` (#4735)
Diffstat (limited to 'test/compress/functions.js')
-rw-r--r--test/compress/functions.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/compress/functions.js b/test/compress/functions.js
index 98dfc4d8..30779c15 100644
--- a/test/compress/functions.js
+++ b/test/compress/functions.js
@@ -2492,14 +2492,14 @@ issue_3297_3: {
input: {
function function1(session) {
var public = {
- processBulk: processBulk
+ processBulk: processBulk,
};
return public;
function processBulk(bulk) {
var subparam1 = session();
function processOne(param1) {
var param2 = {
- subparam1: subparam1
+ subparam1: subparam1,
};
doProcessOne({
param1: param1,
@@ -2525,18 +2525,18 @@ issue_3297_3: {
return {
processBulk: function n(o) {
var r, t, u = c();
- o && 0 < o.length && (r = {
- param1: o.shift(),
- param2: {
- subparam1: u
- }
- },
+ o && 0 < o.length && (r = o.shift(),
t = function() {
n(o);
},
- console.log(JSON.stringify(r)),
+ console.log(JSON.stringify({
+ param1: r,
+ param2: {
+ subparam1: u,
+ },
+ })),
t());
- }
+ },
};
}
function1(function() {