You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: crates/swc_ecma_minifier/tests/benches-full/d3.js
+4-8
Original file line number
Diff line number
Diff line change
@@ -274,8 +274,7 @@ function(global, factory) {
274
274
}
275
275
}
276
276
function maxIndex(values, valueof) {
277
-
let max;
278
-
let maxIndex = -1, index = -1;
277
+
let max, maxIndex = -1, index = -1;
279
278
if (void 0 === valueof) for (const value of values)++index, null != value && (max < value || void 0 === max && value >= value) && (max = value, maxIndex = index);
280
279
else for (let value of values)null != (value = valueof(value, ++index, values)) && (max < value || void 0 === max && value >= value) && (max = value, maxIndex = index);
281
280
return maxIndex;
@@ -286,8 +285,7 @@ function(global, factory) {
286
285
}(arrays));
287
286
}
288
287
function minIndex(values, valueof) {
289
-
let min;
290
-
let minIndex = -1, index = -1;
288
+
let min, minIndex = -1, index = -1;
291
289
if (void 0 === valueof) for (const value of values)++index, null != value && (min > value || void 0 === min && value >= value) && (min = value, minIndex = index);
292
290
else for (let value of values)null != (value = valueof(value, ++index, values)) && (min > value || void 0 === min && value >= value) && (min = value, minIndex = index);
if (void 0 === valueof) for (const value of values)++index, null != value && (max < value || void 0 === max && value >= value) && (max = value, maxIndex = index);
28857
28854
else for (let value of values)null != (value = valueof(value, ++index, values)) && (max < value || void 0 === max && value >= value) && (max = value, maxIndex = index);
if (void 0 === valueof) for (const value of values)++index, null != value && (min > value || void 0 === min && value >= value) && (min = value, minIndex = index);
28929
28925
else for (let value of values)null != (value = valueof(value, ++index, values)) && (min > value || void 0 === min && value >= value) && (min = value, minIndex = index);
Copy file name to clipboardexpand all lines: crates/swc_ecma_minifier/tests/benches-full/vue.js
+1-1
Original file line number
Diff line number
Diff line change
@@ -4330,7 +4330,7 @@
4330
4330
}
4331
4331
}), root;
4332
4332
}(template.trim(), options);
4333
-
!1!==options.optimize&&ast&&(isStaticKey=genStaticKeysCached(options.staticKeys||''),isPlatformReservedTag=options.isReservedTag||no,// first pass: mark all non-static nodes.
4333
+
!1 === options.optimize || ast && (isStaticKey = genStaticKeysCached(options.staticKeys || ''), isPlatformReservedTag = options.isReservedTag || no, // first pass: mark all non-static nodes.
4334
4334
function markStatic$1(node) {
4335
4335
if (node.static = 2 !== node.type && (3 === node.type || !!(node.pre || !node.hasBindings && // no dynamic bindings
4336
4336
!node.if && !node.for && // not v-if or v-for or v-else
0 commit comments