Skip to content

Commit d7d1efb

Browse files
committed
Revert "Update test refs"
This reverts commit ebbc799.
1 parent ad76137 commit d7d1efb

File tree

9 files changed

+12
-23
lines changed

9 files changed

+12
-23
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
//// [templateStringInIndexExpressionES6.ts]
2-
"abc0abc"["0"];

crates/swc_ecma_minifier/tests/fixture/issues/5682/output.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const m = 60 * 1000, h = 60 * 1000 * 60, d = 60 * 1000 * 60 * 24, w = 60 * 1000 * 60 * 24 * 7, y = 60 * 1000 * 60 * 24 * 365.25;
1+
const m = 60000, h = 3600000, d = 86400000, w = 604800000, y = 31557600000;
22
export default function(value, options) {
33
try {
44
if ('string' == typeof value && value.length > 0) return function(str) {

crates/swc_ecma_minifier/tests/fixture/next/47005/output.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@
5959
if (A) return A;
6060
let O = (void (h = 0)).filter((m)=>{
6161
var S;
62-
return Z(m) && "body" !== void (S = 0);
62+
return Z(m) && (S = 0, true);
6363
}), L = null, j = "fixed" === Q(m).position, B = j ? ee(m) : m;
64-
for(; Z(B) && !void (k = 0);){
64+
for(; Z(B) && (k = 0, true);){
6565
let m = Q(B), S = function(m) {
6666
let S = /firefox/i.test(function() {
6767
if (R) return R;
@@ -101,7 +101,7 @@
101101
isElement: Z,
102102
getDimensions: function(m) {
103103
var S, h;
104-
return void (S = 0) ? void (h = 0) : m.getBoundingClientRect();
104+
return (S = 0), m.getBoundingClientRect();
105105
},
106106
getOffsetParent: et,
107107
getDocumentElement: function(m) {},
@@ -379,12 +379,12 @@
379379
t,
380380
r
381381
]);
382-
let ed = K && N && Object.keys(L).length > 0;
382+
let ep = K && N && Object.keys(L).length > 0;
383383
return D ? (0, O.jsxs)(d, {
384384
id: t,
385385
role: "tooltip",
386386
className: (0, I.default)("react-tooltip", el.tooltip, el[o], e, `react-tooltip__place-${k}`, {
387-
[el.show]: ed,
387+
[el.show]: ep,
388388
[el.fixed]: "fixed" === a,
389389
[el.clickable]: T
390390
}),

crates/swc_ecma_minifier/tests/pass-1/1/output.js

-4
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,4 @@ var condString, exprAny1, exprBoolean1, exprNumber1, exprString1, exprIsObject1,
88
];
99
condString.toUpperCase, foo(), foo();
1010
condString.toUpperCase, foo(), 0;
11-
condString.toUpperCase, foo();
12-
foo();
13-
condString.toUpperCase, foo(), foo();
14-
condString.toUpperCase, foo();
1511
condString.toUpperCase;
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
var faderWidth;
2-
Object.prototype.hasOwnProperty, faderWidth = 12 * 4;
2+
Object.prototype.hasOwnProperty, faderWidth = 48;
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
console.log([
2-
"foo"
3-
][0]);
1+
console.log((0, "foo"));
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
(function() {
2-
for (const o of [
3-
10,
4-
2 * 10,
5-
3 * 10
6-
])console.log(o);
1+
(function () {
2+
for (const o of [10, 20, 30]) console.log(o);
73
})();
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
void 0 === void 0 ? console.log("PASS") : console.log("FAIL");
1+
console.log("PASS");
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
void 0 === void 0 ? console.log("PASS") : console.log("FAIL");
1+
console.log("PASS");

0 commit comments

Comments
 (0)