Skip to content

Commit

Permalink
Update test refs
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jan 11, 2023
1 parent b575993 commit 3cc619e
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 12 deletions.
7 changes: 4 additions & 3 deletions crates/swc_ecma_minifier/tests/benches-full/d3.js
Original file line number Diff line number Diff line change
Expand Up @@ -5687,12 +5687,13 @@
return cache = cacheStream = null, projection;
}
return projection.stream = function(stream) {
return cache && cacheStream === stream ? cache : cache = transformRadians(transformer({
var rotate1;
return cache && cacheStream === stream ? cache : cache = transformRadians((rotate1 = rotate, transformer({
point: function(x, y) {
var r = rotate(x, y);
var r = rotate1(x, y);
return this.stream.point(r[0], r[1]);
}
})(preclip(projectResample(postclip(cacheStream = stream)))));
}))(preclip(projectResample(postclip(cacheStream = stream)))));
}, projection.preclip = function(_) {
return arguments.length ? (preclip = _, theta = void 0, reset()) : preclip;
}, projection.postclip = function(_) {
Expand Down
14 changes: 7 additions & 7 deletions crates/swc_ecma_minifier/tests/benches-full/echarts.js
Original file line number Diff line number Diff line change
Expand Up @@ -35218,22 +35218,22 @@
}, DataZoomFeature.prototype.dispose = function(ecModel, api) {
this._brushController && this._brushController.dispose();
}, DataZoomFeature.prototype._onBrush = function(eventParam) {
var storedSnapshots, areas = eventParam.areas;
var ecModel, newSnapshot, storedSnapshots, areas = eventParam.areas;
if (eventParam.isEnd && areas.length) {
var snapshot = {}, ecModel = this.ecModel;
this._brushController.updateCovers([]), new BrushTargetManager(makeAxisFinder(this.model), ecModel, {
var snapshot = {}, ecModel1 = this.ecModel;
this._brushController.updateCovers([]), new BrushTargetManager(makeAxisFinder(this.model), ecModel1, {
include: [
'grid'
]
}).matchOutputRanges(areas, ecModel, function(area, coordRange, coordSys) {
}).matchOutputRanges(areas, ecModel1, function(area, coordRange, coordSys) {
if ('cartesian2d' === coordSys.type) {
var brushType = area.brushType;
'rect' === brushType ? (setBatch('x', coordSys, coordRange[0]), setBatch('y', coordSys, coordRange[1])) : setBatch({
lineX: 'x',
lineY: 'y'
}[brushType], coordSys, coordRange);
}
}), storedSnapshots = getStoreSnapshots(ecModel), each(snapshot, function(batchItem, dataZoomId) {
}), ecModel = ecModel1, newSnapshot = snapshot, storedSnapshots = getStoreSnapshots(ecModel), each(newSnapshot, function(batchItem, dataZoomId) {
for(var i = storedSnapshots.length - 1; i >= 0 && !storedSnapshots[i][dataZoomId]; i--);
if (i < 0) {
var dataZoomModel = ecModel.queryComponents({
Expand All @@ -35250,10 +35250,10 @@
};
}
}
}), storedSnapshots.push(snapshot), this._dispatchZoomAction(snapshot);
}), storedSnapshots.push(newSnapshot), this._dispatchZoomAction(snapshot);
}
function setBatch(dimName, coordSys, minMax) {
var found, axis = coordSys.getAxis(dimName), axisModel = axis.model, dataZoomModel = (ecModel.eachComponent({
var found, axis = coordSys.getAxis(dimName), axisModel = axis.model, dataZoomModel = (ecModel1.eachComponent({
mainType: 'dataZoom',
subType: 'select'
}, function(dzModel) {
Expand Down
13 changes: 13 additions & 0 deletions crates/swc_ecma_minifier/tests/fixture/issues/6751/1/output.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
let current_component;
try {
!function(component) {
const parent = current_component;
current_component = component, parent.m();
}({
m () {
console.log("call m()");
}
});
} catch (e) {
console.log('PASS');
}

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 3cc619e

Please sign in to comment.