Skip to content

Commit

Permalink
Update test refs
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Apr 25, 2024
1 parent e80968d commit 3a8ed7e
Show file tree
Hide file tree
Showing 78 changed files with 14,048 additions and 13,990 deletions.
2 changes: 1 addition & 1 deletion crates/swc/tests/fixture/issues-8xxx/8886/output/1.js
@@ -1,2 +1,2 @@
const bar = 1, foo = 2;
const bar = ((o)=>1)(0), foo = ((o)=>2)(0);
eval(bar), eval(foo);
@@ -1,7 +1,7 @@
//// [callGenericFunctionWithZeroTypeArguments.ts]
var f3, i, i2;
var i, i2;
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
f3(1), new (function() {
(void 0)(1), new (function() {
function C() {
_class_call_check(this, C);
}
Expand Down
@@ -1,7 +1,7 @@
//// [callNonGenericFunctionWithTypeArguments.ts]
var f3, i, i2, a, a2;
var i, i2, a, a2;
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
f3(1), new (function() {
(void 0)(1), new (function() {
function C() {
_class_call_check(this, C);
}
Expand Down
Expand Up @@ -6,10 +6,10 @@ function m1() {
}
!function foo3() {
return foo3();
}(), _type_of(x), (M = M1 || (M1 = {})).x = 1, M.C = function C() {
}(), _type_of(1), (M = M1 || (M1 = {})).x = 1, M.C = function C() {
_class_call_check(this, C);
}, (m1 || (m1 = {})).y = 2;
var e1, M, M1, e11, c1 = function c1(x1) {
var e1, M, M1, e11, c1 = function c1(x) {
_class_call_check(this, c1);
};
(c1 || (c1 = {})).x = 1, (e1 = e11 || (e11 = {}))[e1.A = 0] = "A", (e11 || (e11 = {})).y = 1;
@@ -1,6 +1,7 @@
//// [fixSignatureCaching.ts]
var undefined;
import { _ as _instanceof } from "@swc/helpers/_/_instanceof";
(function() {
(function(undefined) {
if ('undefined' != typeof module && module.exports) return function(factory) {
module.exports = factory();
};
Expand Down Expand Up @@ -354,7 +355,7 @@ import { _ as _instanceof } from "@swc/helpers/_/_instanceof";
cache.mobile = cache.phone = phone, cache.tablet = null;
return;
}
impl.isMobileFallback(userAgent) ? void 0 === (phoneSized = MobileDetect.isPhoneSized(maxPhoneWidth)) ? (cache.mobile = impl.FALLBACK_MOBILE, cache.tablet = cache.phone = null) : phoneSized ? (cache.mobile = cache.phone = impl.FALLBACK_PHONE, cache.tablet = null) : (cache.mobile = cache.tablet = impl.FALLBACK_TABLET, cache.phone = null) : impl.isTabletFallback(userAgent) ? (cache.mobile = cache.tablet = impl.FALLBACK_TABLET, cache.phone = null) : cache.mobile = cache.tablet = cache.phone = null;
impl.isMobileFallback(userAgent) ? undefined === (phoneSized = MobileDetect.isPhoneSized(maxPhoneWidth)) ? (cache.mobile = impl.FALLBACK_MOBILE, cache.tablet = cache.phone = null) : phoneSized ? (cache.mobile = cache.phone = impl.FALLBACK_PHONE, cache.tablet = null) : (cache.mobile = cache.tablet = impl.FALLBACK_TABLET, cache.phone = null) : impl.isTabletFallback(userAgent) ? (cache.mobile = cache.tablet = impl.FALLBACK_TABLET, cache.phone = null) : cache.mobile = cache.tablet = cache.phone = null;
}
}, impl.mobileGrade = function(t) {
var $isMobile = null !== t.mobile();
Expand All @@ -375,13 +376,13 @@ import { _ as _instanceof } from "@swc/helpers/_/_instanceof";
return impl.prepareDetectionCache(this._cache, this.ua, this.maxPhoneWidth), this._cache.tablet;
},
userAgent: function() {
return void 0 === this._cache.userAgent && (this._cache.userAgent = impl.findMatch(impl.mobileDetectRules.uas, this.ua)), this._cache.userAgent;
return undefined === this._cache.userAgent && (this._cache.userAgent = impl.findMatch(impl.mobileDetectRules.uas, this.ua)), this._cache.userAgent;
},
userAgents: function() {
return void 0 === this._cache.userAgents && (this._cache.userAgents = impl.findMatches(impl.mobileDetectRules.uas, this.ua)), this._cache.userAgents;
return undefined === this._cache.userAgents && (this._cache.userAgents = impl.findMatches(impl.mobileDetectRules.uas, this.ua)), this._cache.userAgents;
},
os: function() {
return void 0 === this._cache.os && (this._cache.os = impl.detectOS(this.ua)), this._cache.os;
return undefined === this._cache.os && (this._cache.os = impl.detectOS(this.ua)), this._cache.os;
},
version: function(key) {
return impl.getVersion(key, this.ua);
Expand All @@ -399,9 +400,9 @@ import { _ as _instanceof } from "@swc/helpers/_/_instanceof";
return MobileDetect.isPhoneSized(maxPhoneWidth || this.maxPhoneWidth);
},
mobileGrade: function() {
return void 0 === this._cache.grade && (this._cache.grade = impl.mobileGrade(this)), this._cache.grade;
return undefined === this._cache.grade && (this._cache.grade = impl.mobileGrade(this)), this._cache.grade;
}
}, 'undefined' != typeof window && window.screen ? MobileDetect.isPhoneSized = function(maxPhoneWidth) {
return maxPhoneWidth < 0 ? void 0 : impl.getDeviceSmallerSide() <= maxPhoneWidth;
return maxPhoneWidth < 0 ? undefined : impl.getDeviceSmallerSide() <= maxPhoneWidth;
} : MobileDetect.isPhoneSized = function() {}, MobileDetect._impl = impl, MobileDetect.version = '1.3.3 2016-07-31', MobileDetect;
});
Expand Up @@ -99,13 +99,13 @@ export var L = function(K) {
}
return L;
}(K);
export var M = function() {
export var M = function(_superClass) {
function M() {
var _this;
return _class_call_check(this, M), _this.prop = 12, _possible_constructor_return(_this);
}
return _inherits(M, null), _create_super(M), M;
}(null);
}(0);
export var N = function(L) {
_inherits(N, L);
var _super = _create_super(N);
Expand Down
@@ -1,3 +1,3 @@
//// [nullishCoalescingOperatorInParameterBindingPattern.2.ts]
var _a, _a1, a = function() {};
var param, _a, _a1, a = function() {};
(void 0)[null !== (_a = a()) && void 0 !== _a ? _a : "d"], (void 0)[null !== (_a1 = a()) && void 0 !== _a1 ? _a1 : "d"], param.d;

0 comments on commit 3a8ed7e

Please sign in to comment.