Skip to content

Commit

Permalink
Update test refs
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jul 29, 2024
1 parent 8998d29 commit 9c1c646
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
6 changes: 6 additions & 0 deletions crates/swc_ecma_minifier/tests/fixture/issues/8643/output.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ const Cache = {
get: function(key) {
if (!1 !== this.enabled) // console.log( 'THREE.Cache', 'Checking key:', key );
return this.files[key];
},
remove: function(key) {
delete this.files[key];
},
clear: function() {
this.files = {};
}
};
class Loader {
Expand Down
14 changes: 14 additions & 0 deletions crates/swc_ecma_minifier/tests/fixture/issues/9148/output.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export default (function() {
const obj = {
clear: function() {
console.log('clear');
},
start: function() {
const _this = this;
setTimeout(function() {
_this.clear();
});
}
};
return ()=>obj.start();
})();
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
console.log(1, 1);
var o = {
u: function() {
return this === this;
},
p: 1
};
console.log(o.p, o.p);

0 comments on commit 9c1c646

Please sign in to comment.