fix(es/compat): Fix handling of this of optional chaining pass (#7527)

**Related issue:**

 - Closes #7526.
This commit is contained in:
Donny/강동윤 2023-06-14 13:59:35 +09:00 committed by GitHub
parent db85bf3ee2
commit 4644d005d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
66 changed files with 552 additions and 499 deletions

View File

@ -75,8 +75,8 @@ class RequestHandler {
* @param {Response} res
* @return {* | Promise<any>}
*/ static async parseResponse(res) {
var _res_headers_get_startsWith, _object;
if ((_object = res.headers.get("Content-Type")) === null || _object === void 0 ? void 0 : (_res_headers_get_startsWith = _object.startsWith) === null || _res_headers_get_startsWith === void 0 ? void 0 : _res_headers_get_startsWith.call(_object, "application/json")) {
var _res_headers_get_startsWith, _this;
if ((_this = res.headers.get("Content-Type")) === null || _this === void 0 ? void 0 : (_res_headers_get_startsWith = _this.startsWith) === null || _res_headers_get_startsWith === void 0 ? void 0 : _res_headers_get_startsWith.call(_this, "application/json")) {
return await res.json();
}
return res.buffer();

View File

@ -6,14 +6,14 @@ var dummyTsFunction = function() {
];
var func1 = function(array) {
var // Mapping array
_array_map, _object;
return (_object = array) === null || _object === void 0 ? void 0 : (_array_map = _object.map) === null || _array_map === void 0 ? void 0 : _array_map.call(_object, function(i) {
_array_map, _this;
return (_this = array) === null || _this === void 0 ? void 0 : (_array_map = _this.map) === null || _array_map === void 0 ? void 0 : _array_map.call(_this, function(i) {
return i;
});
};
var func2 = function(array) {
var _array_map, _object;
return (_object = array) === null || _object === void 0 ? void 0 : (_array_map = _object.map) === null || _array_map === void 0 ? void 0 : _array_map.call(_object, function(i) {
var _array_map, _this;
return (_this = array) === null || _this === void 0 ? void 0 : (_array_map = _this.map) === null || _array_map === void 0 ? void 0 : _array_map.call(_this, function(i) {
return i;
});
};

View File

@ -13,7 +13,7 @@ var Router = /*#__PURE__*/ function() {
value: function change(method, url, as, options, forcedScroll) {
var _this = this;
return _async_to_generator(function() {
var shouldResolveHref, prevLocale, parsedAs, localePathResult, didNavigate, _this_locales_includes, _object, detectedDomain, asNoBasePath, _options_shallow, shallow, routeProps, cleanedAs, localeChange, parsed, pathname, query, pages, rewrites, ref, err, resolvedAs, rewritesResult, route, parsedAs1, asPathname, routeRegex, routeMatch, shouldInterpolate, interpolatedAs, missingParams, _self___NEXT_DATA___props_pageProps, _self___NEXT_DATA___props, _props, routeInfo, error, props, __N_SSG, __N_SSP, destination, parsedHref, _prepareUrlAs, newUrl, newAs, notFoundRoute, _, isValidShallowRoute, _options_scroll, shouldScroll, resetScroll, err1;
var shouldResolveHref, prevLocale, parsedAs, localePathResult, didNavigate, _this_locales_includes, _this1, detectedDomain, asNoBasePath, _options_shallow, shallow, routeProps, cleanedAs, localeChange, parsed, pathname, query, pages, rewrites, ref, err, resolvedAs, rewritesResult, route, parsedAs1, asPathname, routeRegex, routeMatch, shouldInterpolate, interpolatedAs, missingParams, _self___NEXT_DATA___props_pageProps, _self___NEXT_DATA___props, _props, routeInfo, error, props, __N_SSG, __N_SSP, destination, parsedHref, _prepareUrlAs, newUrl, newAs, notFoundRoute, _, isValidShallowRoute, _options_scroll, shouldScroll, resetScroll, err1;
return _ts_generator(this, function(_state) {
switch(_state.label){
case 0:
@ -50,7 +50,7 @@ var Router = /*#__PURE__*/ function() {
if (process.env.__NEXT_I18N_SUPPORT) {
;
// if the locale isn't configured hard navigate to show 404 page
if (!((_object = _this.locales) === null || _object === void 0 ? void 0 : (_this_locales_includes = _object.includes) === null || _this_locales_includes === void 0 ? void 0 : _this_locales_includes.call(_object, _this.locale))) {
if (!((_this1 = _this.locales) === null || _this1 === void 0 ? void 0 : (_this_locales_includes = _this1.includes) === null || _this_locales_includes === void 0 ? void 0 : _this_locales_includes.call(_this1, _this.locale))) {
parsedAs.pathname = addLocale(parsedAs.pathname, _this.locale);
window.location.href = formatWithValidation(parsedAs);
// this was previously a return but was removed in favor

View File

@ -1,7 +1,7 @@
//// [callChain.ts]
var _o2_b, _o2_b1, _o2_b2, _o2_b3, _o3_b, _o3_b1, _o3_b2, _o3_b3, _o3_b4, _o3_b5;
var _o1, _o11, _o12, _o13, _o2_b4, _object, _o2_b5, _object1, _o2_b6, _object2, _o2_b7, _object3, _o2_b8, _object4, _o2_b9, _object5, _o2_b10, _object6, _o2_b11, _object7, _o3_b6, _o3_b7, _o3_b8, _o3_b9, _o3_b10, _o3_b11, _o3_b12, _o3_b13, _o3_b14, _o3_b15, _o3_b16, _o3_b17, _o3_b18, _o3_b19, _o3_b20, _o3_b21, _o3_b22, _o3_b23, _o3_b24, _o3_b25, _o3_b26, _o3_b27, _o3_b28, _o3_b29, _o4, _o5, // GH#36031
_o2_b12, _object8, _o2_b13, _object9;
var _o1, _o11, _o12, _o13, _o2_b4, _this, _o2_b5, _this1, _o2_b6, _this2, _o2_b7, _this3, _o2_b8, _this4, _o2_b9, _this5, _o2_b10, _this6, _o2_b11, _this7, _o3_b6, _object, _o3_b7, _object1, _o3_b8, _object2, _o3_b9, _object3, _o3_b10, _object4, _o3_b11, _object5, _o3_b12, _object6, _o3_b13, _object7, _o3_b14, _object8, _o3_b15, _object9, _o3_b16, _object10, _o3_b17, _object11, _o4, _o5, // GH#36031
_o2_b12, _this8, _o2_b13, _this9;
(_o1 = o1) === null || _o1 === void 0 ? void 0 : _o1();
(_o11 = o1) === null || _o11 === void 0 ? void 0 : _o11(1);
(_o12 = o1) === null || _o12 === void 0 ? void 0 : _o12.apply(void 0, [
@ -14,71 +14,71 @@ _o2_b12, _object8, _o2_b13, _object9;
3,
4
]);
(_object = o2) === null || _object === void 0 ? void 0 : (_o2_b4 = _object.b) === null || _o2_b4 === void 0 ? void 0 : _o2_b4.call(_object);
(_object1 = o2) === null || _object1 === void 0 ? void 0 : (_o2_b5 = _object1.b) === null || _o2_b5 === void 0 ? void 0 : _o2_b5.call(_object1, 1);
(_object2 = o2) === null || _object2 === void 0 ? void 0 : (_o2_b6 = _object2.b) === null || _o2_b6 === void 0 ? void 0 : (_o2_b = _o2_b6).call.apply(_o2_b, [
_object2,
(_this = o2) === null || _this === void 0 ? void 0 : (_o2_b4 = _this.b) === null || _o2_b4 === void 0 ? void 0 : _o2_b4.call(_this);
(_this1 = o2) === null || _this1 === void 0 ? void 0 : (_o2_b5 = _this1.b) === null || _o2_b5 === void 0 ? void 0 : _o2_b5.call(_this1, 1);
(_this2 = o2) === null || _this2 === void 0 ? void 0 : (_o2_b6 = _this2.b) === null || _o2_b6 === void 0 ? void 0 : (_o2_b = _o2_b6).call.apply(_o2_b, [
_this2,
1,
2
]);
(_object3 = o2) === null || _object3 === void 0 ? void 0 : (_o2_b7 = _object3.b) === null || _o2_b7 === void 0 ? void 0 : (_o2_b1 = _o2_b7).call.apply(_o2_b1, [
(_this3 = o2) === null || _this3 === void 0 ? void 0 : (_o2_b7 = _this3.b) === null || _o2_b7 === void 0 ? void 0 : (_o2_b1 = _o2_b7).call.apply(_o2_b1, [
_this3,
1,
2,
3,
4
]);
(_this4 = o2) === null || _this4 === void 0 ? void 0 : (_o2_b8 = _this4["b"]) === null || _o2_b8 === void 0 ? void 0 : _o2_b8.call(_this4);
(_this5 = o2) === null || _this5 === void 0 ? void 0 : (_o2_b9 = _this5["b"]) === null || _o2_b9 === void 0 ? void 0 : _o2_b9.call(_this5, 1);
(_this6 = o2) === null || _this6 === void 0 ? void 0 : (_o2_b10 = _this6["b"]) === null || _o2_b10 === void 0 ? void 0 : (_o2_b2 = _o2_b10).call.apply(_o2_b2, [
_this6,
1,
2
]);
(_this7 = o2) === null || _this7 === void 0 ? void 0 : (_o2_b11 = _this7["b"]) === null || _o2_b11 === void 0 ? void 0 : (_o2_b3 = _o2_b11).call.apply(_o2_b3, [
_this7,
1,
2,
3,
4
]);
(_object = o3) === null || _object === void 0 ? void 0 : ((_o3_b6 = _object.b) === null || _o3_b6 === void 0 ? void 0 : _o3_b6.call(_object)).c;
(_object1 = o3) === null || _object1 === void 0 ? void 0 : ((_o3_b7 = _object1.b) === null || _o3_b7 === void 0 ? void 0 : _o3_b7.call(_object1, 1)).c;
(_object2 = o3) === null || _object2 === void 0 ? void 0 : ((_o3_b8 = _object2.b) === null || _o3_b8 === void 0 ? void 0 : (_o3_b = _o3_b8).call.apply(_o3_b, [
_object2,
1,
2
])).c;
(_object3 = o3) === null || _object3 === void 0 ? void 0 : ((_o3_b9 = _object3.b) === null || _o3_b9 === void 0 ? void 0 : (_o3_b1 = _o3_b9).call.apply(_o3_b1, [
_object3,
1,
2,
3,
4
]);
(_object4 = o2) === null || _object4 === void 0 ? void 0 : (_o2_b8 = _object4["b"]) === null || _o2_b8 === void 0 ? void 0 : _o2_b8.call(_object4);
(_object5 = o2) === null || _object5 === void 0 ? void 0 : (_o2_b9 = _object5["b"]) === null || _o2_b9 === void 0 ? void 0 : _o2_b9.call(_object5, 1);
(_object6 = o2) === null || _object6 === void 0 ? void 0 : (_o2_b10 = _object6["b"]) === null || _o2_b10 === void 0 ? void 0 : (_o2_b2 = _o2_b10).call.apply(_o2_b2, [
])).c;
(_object4 = o3) === null || _object4 === void 0 ? void 0 : ((_o3_b10 = _object4.b) === null || _o3_b10 === void 0 ? void 0 : _o3_b10.call(_object4))["c"];
(_object5 = o3) === null || _object5 === void 0 ? void 0 : ((_o3_b11 = _object5.b) === null || _o3_b11 === void 0 ? void 0 : _o3_b11.call(_object5, 1))["c"];
(_object6 = o3) === null || _object6 === void 0 ? void 0 : ((_o3_b12 = _object6.b) === null || _o3_b12 === void 0 ? void 0 : (_o3_b2 = _o3_b12).call.apply(_o3_b2, [
_object6,
1,
2
]);
(_object7 = o2) === null || _object7 === void 0 ? void 0 : (_o2_b11 = _object7["b"]) === null || _o2_b11 === void 0 ? void 0 : (_o2_b3 = _o2_b11).call.apply(_o2_b3, [
]))["c"];
(_object7 = o3) === null || _object7 === void 0 ? void 0 : ((_o3_b13 = _object7.b) === null || _o3_b13 === void 0 ? void 0 : (_o3_b3 = _o3_b13).call.apply(_o3_b3, [
_object7,
1,
2,
3,
4
]);
(_o3_b6 = o3) === null || _o3_b6 === void 0 ? void 0 : ((_o3_b7 = _o3_b6.b) === null || _o3_b7 === void 0 ? void 0 : _o3_b7.call(_o3_b6)).c;
(_o3_b8 = o3) === null || _o3_b8 === void 0 ? void 0 : ((_o3_b9 = _o3_b8.b) === null || _o3_b9 === void 0 ? void 0 : _o3_b9.call(_o3_b8, 1)).c;
(_o3_b10 = o3) === null || _o3_b10 === void 0 ? void 0 : ((_o3_b11 = _o3_b10.b) === null || _o3_b11 === void 0 ? void 0 : (_o3_b = _o3_b11).call.apply(_o3_b, [
_o3_b10,
1,
2
])).c;
(_o3_b12 = o3) === null || _o3_b12 === void 0 ? void 0 : ((_o3_b13 = _o3_b12.b) === null || _o3_b13 === void 0 ? void 0 : (_o3_b1 = _o3_b13).call.apply(_o3_b1, [
_o3_b12,
1,
2,
3,
4
])).c;
(_o3_b14 = o3) === null || _o3_b14 === void 0 ? void 0 : ((_o3_b15 = _o3_b14.b) === null || _o3_b15 === void 0 ? void 0 : _o3_b15.call(_o3_b14))["c"];
(_o3_b16 = o3) === null || _o3_b16 === void 0 ? void 0 : ((_o3_b17 = _o3_b16.b) === null || _o3_b17 === void 0 ? void 0 : _o3_b17.call(_o3_b16, 1))["c"];
(_o3_b18 = o3) === null || _o3_b18 === void 0 ? void 0 : ((_o3_b19 = _o3_b18.b) === null || _o3_b19 === void 0 ? void 0 : (_o3_b2 = _o3_b19).call.apply(_o3_b2, [
_o3_b18,
1,
2
]))["c"];
(_o3_b20 = o3) === null || _o3_b20 === void 0 ? void 0 : ((_o3_b21 = _o3_b20.b) === null || _o3_b21 === void 0 ? void 0 : (_o3_b3 = _o3_b21).call.apply(_o3_b3, [
_o3_b20,
1,
2,
3,
4
]))["c"];
(_o3_b22 = o3) === null || _o3_b22 === void 0 ? void 0 : ((_o3_b23 = _o3_b22["b"]) === null || _o3_b23 === void 0 ? void 0 : _o3_b23.call(_o3_b22)).c;
(_o3_b24 = o3) === null || _o3_b24 === void 0 ? void 0 : ((_o3_b25 = _o3_b24["b"]) === null || _o3_b25 === void 0 ? void 0 : _o3_b25.call(_o3_b24, 1)).c;
(_o3_b26 = o3) === null || _o3_b26 === void 0 ? void 0 : ((_o3_b27 = _o3_b26["b"]) === null || _o3_b27 === void 0 ? void 0 : (_o3_b4 = _o3_b27).call.apply(_o3_b4, [
_o3_b26,
(_object8 = o3) === null || _object8 === void 0 ? void 0 : ((_o3_b14 = _object8["b"]) === null || _o3_b14 === void 0 ? void 0 : _o3_b14.call(_object8)).c;
(_object9 = o3) === null || _object9 === void 0 ? void 0 : ((_o3_b15 = _object9["b"]) === null || _o3_b15 === void 0 ? void 0 : _o3_b15.call(_object9, 1)).c;
(_object10 = o3) === null || _object10 === void 0 ? void 0 : ((_o3_b16 = _object10["b"]) === null || _o3_b16 === void 0 ? void 0 : (_o3_b4 = _o3_b16).call.apply(_o3_b4, [
_object10,
1,
2
])).c;
(_o3_b28 = o3) === null || _o3_b28 === void 0 ? void 0 : ((_o3_b29 = _o3_b28["b"]) === null || _o3_b29 === void 0 ? void 0 : (_o3_b5 = _o3_b29).call.apply(_o3_b5, [
_o3_b28,
(_object11 = o3) === null || _object11 === void 0 ? void 0 : ((_o3_b17 = _object11["b"]) === null || _o3_b17 === void 0 ? void 0 : (_o3_b5 = _o3_b17).call.apply(_o3_b5, [
_object11,
1,
2,
3,
@ -86,5 +86,5 @@ _o2_b12, _object8, _o2_b13, _object9;
])).c;
var v = (_o4 = o4) === null || _o4 === void 0 ? void 0 : _o4(incr);
(_o5 = o5()) === null || _o5 === void 0 ? void 0 : _o5();
((_object8 = o2) === null || _object8 === void 0 ? void 0 : (_o2_b12 = _object8.b) === null || _o2_b12 === void 0 ? void 0 : _o2_b12.call(_object8)).toString;
((_object9 = o2) === null || _object9 === void 0 ? void 0 : (_o2_b13 = _object9.b) === null || _o2_b13 === void 0 ? void 0 : _o2_b13.call(_object9)).toString;
((_this8 = o2) === null || _this8 === void 0 ? void 0 : (_o2_b12 = _this8.b) === null || _o2_b12 === void 0 ? void 0 : _o2_b12.call(_this8)).toString;
((_this9 = o2) === null || _this9 === void 0 ? void 0 : (_o2_b13 = _this9.b) === null || _o2_b13 === void 0 ? void 0 : _o2_b13.call(_this9)).toString;

View File

@ -1,5 +1,5 @@
//// [callChain.2.ts]
var _o1, _o2_b, _object, _o3_b, _o3_b1;
var _o1, _o2_b, _this, _o3_b, _object;
(_o1 = o1) === null || _o1 === void 0 ? void 0 : _o1();
(_object = o2) === null || _object === void 0 ? void 0 : (_o2_b = _object.b) === null || _o2_b === void 0 ? void 0 : _o2_b.call(_object);
(_o3_b = o3) === null || _o3_b === void 0 ? void 0 : ((_o3_b1 = _o3_b.b) === null || _o3_b1 === void 0 ? void 0 : _o3_b1.call(_o3_b)).c;
(_this = o2) === null || _this === void 0 ? void 0 : (_o2_b = _this.b) === null || _o2_b === void 0 ? void 0 : _o2_b.call(_this);
(_object = o3) === null || _object === void 0 ? void 0 : ((_o3_b = _object.b) === null || _o3_b === void 0 ? void 0 : _o3_b.call(_object)).c;

View File

@ -1,3 +1,3 @@
//// [callChain.2.ts]
var _o1, _o2_b, _object, _o3_b, _o3_b1;
null === (_o1 = o1) || void 0 === _o1 || _o1(), null === (_object = o2) || void 0 === _object || null === (_o2_b = _object.b) || void 0 === _o2_b || _o2_b.call(_object), null === (_o3_b = o3) || void 0 === _o3_b || (null === (_o3_b1 = _o3_b.b) || void 0 === _o3_b1 ? void 0 : _o3_b1.call(_o3_b)).c;
var _o1, _o2_b, _this, _o3_b, _object;
null === (_o1 = o1) || void 0 === _o1 || _o1(), null === (_this = o2) || void 0 === _this || null === (_o2_b = _this.b) || void 0 === _o2_b || _o2_b.call(_this), null === (_object = o3) || void 0 === _object || (null === (_o3_b = _object.b) || void 0 === _o3_b ? void 0 : _o3_b.call(_object)).c;

View File

@ -1,5 +1,5 @@
//// [callChain.ts]
var _o1, _o11, _o12, _o13, _o2_b4, _object, _o2_b5, _object1, _o2_b6, _object2, _o2_b7, _object3, _o2_b8, _object4, _o2_b9, _object5, _o2_b10, _object6, _o2_b11, _object7, _o3_b6, _o3_b7, _o3_b8, _o3_b9, _o3_b10, _o3_b11, _o3_b12, _o3_b13, _o3_b14, _o3_b15, _o3_b16, _o3_b17, _o3_b18, _o3_b19, _o3_b20, _o3_b21, _o3_b22, _o3_b23, _o3_b24, _o3_b25, _o3_b26, _o3_b27, _o3_b28, _o3_b29, _o4, _o5, _o2_b12, _object8, _o2_b13, _object9;
var _o1, _o11, _o12, _o13, _o2_b4, _this, _o2_b5, _this1, _o2_b6, _this2, _o2_b7, _this3, _o2_b8, _this4, _o2_b9, _this5, _o2_b10, _this6, _o2_b11, _this7, _o3_b6, _object, _o3_b7, _object1, _o3_b8, _object2, _o3_b9, _object3, _o3_b10, _object4, _o3_b11, _object5, _o3_b12, _object6, _o3_b13, _object7, _o3_b14, _object8, _o3_b15, _object9, _o3_b16, _object10, _o3_b17, _object11, _o4, _o5, _o2_b12, _this8, _o2_b13, _this9;
null === (_o1 = o1) || void 0 === _o1 || _o1(), null === (_o11 = o1) || void 0 === _o11 || _o11(1), null === (_o12 = o1) || void 0 === _o12 || _o12.apply(void 0, [
1,
2
@ -8,54 +8,54 @@ null === (_o1 = o1) || void 0 === _o1 || _o1(), null === (_o11 = o1) || void 0 =
2,
3,
4
]), null === (_object = o2) || void 0 === _object || null === (_o2_b4 = _object.b) || void 0 === _o2_b4 || _o2_b4.call(_object), null === (_object1 = o2) || void 0 === _object1 || null === (_o2_b5 = _object1.b) || void 0 === _o2_b5 || _o2_b5.call(_object1, 1), null === (_object2 = o2) || void 0 === _object2 || null === (_o2_b6 = _object2.b) || void 0 === _o2_b6 || _o2_b6.call.apply(_o2_b6, [
]), null === (_this = o2) || void 0 === _this || null === (_o2_b4 = _this.b) || void 0 === _o2_b4 || _o2_b4.call(_this), null === (_this1 = o2) || void 0 === _this1 || null === (_o2_b5 = _this1.b) || void 0 === _o2_b5 || _o2_b5.call(_this1, 1), null === (_this2 = o2) || void 0 === _this2 || null === (_o2_b6 = _this2.b) || void 0 === _o2_b6 || _o2_b6.call.apply(_o2_b6, [
_this2,
1,
2
]), null === (_this3 = o2) || void 0 === _this3 || null === (_o2_b7 = _this3.b) || void 0 === _o2_b7 || _o2_b7.call.apply(_o2_b7, [
_this3,
1,
2,
3,
4
]), null === (_this4 = o2) || void 0 === _this4 || null === (_o2_b8 = _this4.b) || void 0 === _o2_b8 || _o2_b8.call(_this4), null === (_this5 = o2) || void 0 === _this5 || null === (_o2_b9 = _this5.b) || void 0 === _o2_b9 || _o2_b9.call(_this5, 1), null === (_this6 = o2) || void 0 === _this6 || null === (_o2_b10 = _this6.b) || void 0 === _o2_b10 || _o2_b10.call.apply(_o2_b10, [
_this6,
1,
2
]), null === (_this7 = o2) || void 0 === _this7 || null === (_o2_b11 = _this7.b) || void 0 === _o2_b11 || _o2_b11.call.apply(_o2_b11, [
_this7,
1,
2,
3,
4
]), null === (_object = o3) || void 0 === _object || (null === (_o3_b6 = _object.b) || void 0 === _o3_b6 ? void 0 : _o3_b6.call(_object)).c, null === (_object1 = o3) || void 0 === _object1 || (null === (_o3_b7 = _object1.b) || void 0 === _o3_b7 ? void 0 : _o3_b7.call(_object1, 1)).c, null === (_object2 = o3) || void 0 === _object2 || (null === (_o3_b8 = _object2.b) || void 0 === _o3_b8 ? void 0 : _o3_b8.call.apply(_o3_b8, [
_object2,
1,
2
]), null === (_object3 = o2) || void 0 === _object3 || null === (_o2_b7 = _object3.b) || void 0 === _o2_b7 || _o2_b7.call.apply(_o2_b7, [
])).c, null === (_object3 = o3) || void 0 === _object3 || (null === (_o3_b9 = _object3.b) || void 0 === _o3_b9 ? void 0 : _o3_b9.call.apply(_o3_b9, [
_object3,
1,
2,
3,
4
]), null === (_object4 = o2) || void 0 === _object4 || null === (_o2_b8 = _object4.b) || void 0 === _o2_b8 || _o2_b8.call(_object4), null === (_object5 = o2) || void 0 === _object5 || null === (_o2_b9 = _object5.b) || void 0 === _o2_b9 || _o2_b9.call(_object5, 1), null === (_object6 = o2) || void 0 === _object6 || null === (_o2_b10 = _object6.b) || void 0 === _o2_b10 || _o2_b10.call.apply(_o2_b10, [
])).c, null === (_object4 = o3) || void 0 === _object4 || (null === (_o3_b10 = _object4.b) || void 0 === _o3_b10 ? void 0 : _o3_b10.call(_object4)).c, null === (_object5 = o3) || void 0 === _object5 || (null === (_o3_b11 = _object5.b) || void 0 === _o3_b11 ? void 0 : _o3_b11.call(_object5, 1)).c, null === (_object6 = o3) || void 0 === _object6 || (null === (_o3_b12 = _object6.b) || void 0 === _o3_b12 ? void 0 : _o3_b12.call.apply(_o3_b12, [
_object6,
1,
2
]), null === (_object7 = o2) || void 0 === _object7 || null === (_o2_b11 = _object7.b) || void 0 === _o2_b11 || _o2_b11.call.apply(_o2_b11, [
])).c, null === (_object7 = o3) || void 0 === _object7 || (null === (_o3_b13 = _object7.b) || void 0 === _o3_b13 ? void 0 : _o3_b13.call.apply(_o3_b13, [
_object7,
1,
2,
3,
4
]), null === (_o3_b6 = o3) || void 0 === _o3_b6 || (null === (_o3_b7 = _o3_b6.b) || void 0 === _o3_b7 ? void 0 : _o3_b7.call(_o3_b6)).c, null === (_o3_b8 = o3) || void 0 === _o3_b8 || (null === (_o3_b9 = _o3_b8.b) || void 0 === _o3_b9 ? void 0 : _o3_b9.call(_o3_b8, 1)).c, null === (_o3_b10 = o3) || void 0 === _o3_b10 || (null === (_o3_b11 = _o3_b10.b) || void 0 === _o3_b11 ? void 0 : _o3_b11.call.apply(_o3_b11, [
_o3_b10,
])).c, null === (_object8 = o3) || void 0 === _object8 || (null === (_o3_b14 = _object8.b) || void 0 === _o3_b14 ? void 0 : _o3_b14.call(_object8)).c, null === (_object9 = o3) || void 0 === _object9 || (null === (_o3_b15 = _object9.b) || void 0 === _o3_b15 ? void 0 : _o3_b15.call(_object9, 1)).c, null === (_object10 = o3) || void 0 === _object10 || (null === (_o3_b16 = _object10.b) || void 0 === _o3_b16 ? void 0 : _o3_b16.call.apply(_o3_b16, [
_object10,
1,
2
])).c, null === (_o3_b12 = o3) || void 0 === _o3_b12 || (null === (_o3_b13 = _o3_b12.b) || void 0 === _o3_b13 ? void 0 : _o3_b13.call.apply(_o3_b13, [
_o3_b12,
])).c, null === (_object11 = o3) || void 0 === _object11 || (null === (_o3_b17 = _object11.b) || void 0 === _o3_b17 ? void 0 : _o3_b17.call.apply(_o3_b17, [
_object11,
1,
2,
3,
4
])).c, null === (_o3_b14 = o3) || void 0 === _o3_b14 || (null === (_o3_b15 = _o3_b14.b) || void 0 === _o3_b15 ? void 0 : _o3_b15.call(_o3_b14)).c, null === (_o3_b16 = o3) || void 0 === _o3_b16 || (null === (_o3_b17 = _o3_b16.b) || void 0 === _o3_b17 ? void 0 : _o3_b17.call(_o3_b16, 1)).c, null === (_o3_b18 = o3) || void 0 === _o3_b18 || (null === (_o3_b19 = _o3_b18.b) || void 0 === _o3_b19 ? void 0 : _o3_b19.call.apply(_o3_b19, [
_o3_b18,
1,
2
])).c, null === (_o3_b20 = o3) || void 0 === _o3_b20 || (null === (_o3_b21 = _o3_b20.b) || void 0 === _o3_b21 ? void 0 : _o3_b21.call.apply(_o3_b21, [
_o3_b20,
1,
2,
3,
4
])).c, null === (_o3_b22 = o3) || void 0 === _o3_b22 || (null === (_o3_b23 = _o3_b22.b) || void 0 === _o3_b23 ? void 0 : _o3_b23.call(_o3_b22)).c, null === (_o3_b24 = o3) || void 0 === _o3_b24 || (null === (_o3_b25 = _o3_b24.b) || void 0 === _o3_b25 ? void 0 : _o3_b25.call(_o3_b24, 1)).c, null === (_o3_b26 = o3) || void 0 === _o3_b26 || (null === (_o3_b27 = _o3_b26.b) || void 0 === _o3_b27 ? void 0 : _o3_b27.call.apply(_o3_b27, [
_o3_b26,
1,
2
])).c, null === (_o3_b28 = o3) || void 0 === _o3_b28 || (null === (_o3_b29 = _o3_b28.b) || void 0 === _o3_b29 ? void 0 : _o3_b29.call.apply(_o3_b29, [
_o3_b28,
1,
2,
3,
4
])).c, null === (_o4 = o4) || void 0 === _o4 || _o4(incr), null === (_o5 = o5()) || void 0 === _o5 || _o5(), (null === (_object8 = o2) || void 0 === _object8 ? void 0 : null === (_o2_b12 = _object8.b) || void 0 === _o2_b12 ? void 0 : _o2_b12.call(_object8)).toString, (null === (_object9 = o2) || void 0 === _object9 ? void 0 : null === (_o2_b13 = _object9.b) || void 0 === _o2_b13 ? void 0 : _o2_b13.call(_object9)).toString;
])).c, null === (_o4 = o4) || void 0 === _o4 || _o4(incr), null === (_o5 = o5()) || void 0 === _o5 || _o5(), (null === (_this8 = o2) || void 0 === _this8 ? void 0 : null === (_o2_b12 = _this8.b) || void 0 === _o2_b12 ? void 0 : _o2_b12.call(_this8)).toString, (null === (_this9 = o2) || void 0 === _this9 ? void 0 : null === (_o2_b13 = _this9.b) || void 0 === _o2_b13 ? void 0 : _o2_b13.call(_this9)).toString;

View File

@ -1,8 +1,8 @@
//// [callChainInference.ts]
// Repro from #42404
var _value_foo, _object;
var _value_foo, _this;
if (value) {
var _value_foo1, _object1;
(_object1 = value) === null || _object1 === void 0 ? void 0 : (_value_foo1 = _object1.foo) === null || _value_foo1 === void 0 ? void 0 : _value_foo1.call(_object1, "a");
var _value_foo1, _this1;
(_this1 = value) === null || _this1 === void 0 ? void 0 : (_value_foo1 = _this1.foo) === null || _value_foo1 === void 0 ? void 0 : _value_foo1.call(_this1, "a");
}
(_object = value) === null || _object === void 0 ? void 0 : (_value_foo = _object.foo) === null || _value_foo === void 0 ? void 0 : _value_foo.call(_object, "a");
(_this = value) === null || _this === void 0 ? void 0 : (_value_foo = _this.foo) === null || _value_foo === void 0 ? void 0 : _value_foo.call(_this, "a");

View File

@ -1,3 +1,3 @@
//// [callChainInference.ts]
var _value_foo, _object, _value_foo1, _object1;
value && (null === (_object1 = value) || void 0 === _object1 || null === (_value_foo1 = _object1.foo) || void 0 === _value_foo1 || _value_foo1.call(_object1, "a")), null === (_object = value) || void 0 === _object || null === (_value_foo = _object.foo) || void 0 === _value_foo || _value_foo.call(_object, "a");
var _value_foo, _this, _value_foo1, _this1;
value && (null === (_this1 = value) || void 0 === _this1 || null === (_value_foo1 = _this1.foo) || void 0 === _value_foo1 || _value_foo1.call(_this1, "a")), null === (_this = value) || void 0 === _this || null === (_value_foo = _this.foo) || void 0 === _value_foo || _value_foo.call(_this, "a");

View File

@ -2,18 +2,18 @@
// assignments in shortcutting chain
import { _ as _instanceof } from "@swc/helpers/_/_instanceof";
import { _ as _type_of } from "@swc/helpers/_/_type_of";
var _o, _o_x, _o1, _o_x1, _object, _f, _o2_f, _object1, _o2, _o3, _o31, _o4_x, _o4_x1, _o5_x_y_z, _o5_x_y, _o5_x, _o5_x_y1, _o5_x_y_z1, _o5_x_y2, _o6_f, _object2, _o6, _arr_i;
var _o, _o1, _o2, _o_x, _this, _f, _o2_f, _this1, _o21, _o3, _o31, _o4_x, _o4_x1, _o5_x_y_z, _o5_x, _o5_x1, _o5_x2, _o5_x_y_z1, _o5_x3, _o6_f, _this2, _o6, _arr_i;
var a;
(_o = o) === null || _o === void 0 ? void 0 : _o[a = 1];
a.toString();
var b;
(_o_x = o) === null || _o_x === void 0 ? void 0 : _o_x.x[b = 1];
(_o1 = o) === null || _o1 === void 0 ? void 0 : _o1.x[b = 1];
b.toString();
var c;
(_o1 = o) === null || _o1 === void 0 ? void 0 : _o1(c = 1);
(_o2 = o) === null || _o2 === void 0 ? void 0 : _o2(c = 1);
c.toString();
var d;
(_object = o) === null || _object === void 0 ? void 0 : (_o_x1 = _object.x) === null || _o_x1 === void 0 ? void 0 : _o_x1.call(_object, d = 1);
(_this = o) === null || _this === void 0 ? void 0 : (_o_x = _this.x) === null || _o_x === void 0 ? void 0 : _o_x.call(_this, d = 1);
d.toString();
if ((_f = f) === null || _f === void 0 ? void 0 : _f(x)) {
x; // number
@ -27,22 +27,22 @@ if ((_f = f) === null || _f === void 0 ? void 0 : _f(x)) {
x;
f;
f(x);
if ((_object1 = o2) === null || _object1 === void 0 ? void 0 : (_o2_f = _object1.f) === null || _o2_f === void 0 ? void 0 : _o2_f.call(_object1, x)) {
var _o21, _o2_f1, _object3;
if ((_this1 = o2) === null || _this1 === void 0 ? void 0 : (_o2_f = _this1.f) === null || _o2_f === void 0 ? void 0 : _o2_f.call(_this1, x)) {
var _o22, _o2_f1, _this3;
x; // number
o2.f; // (x: any) => x is number
(_o21 = o2) === null || _o21 === void 0 ? void 0 : _o21.f;
(_object3 = o2) === null || _object3 === void 0 ? void 0 : (_o2_f1 = _object3.f) === null || _o2_f1 === void 0 ? void 0 : _o2_f1.call(_object3, x);
(_o22 = o2) === null || _o22 === void 0 ? void 0 : _o22.f;
(_this3 = o2) === null || _this3 === void 0 ? void 0 : (_o2_f1 = _this3.f) === null || _o2_f1 === void 0 ? void 0 : _o2_f1.call(_this3, x);
} else {
var _o22;
var _o23;
x;
o2;
(_o22 = o2) === null || _o22 === void 0 ? void 0 : _o22.f;
(_o23 = o2) === null || _o23 === void 0 ? void 0 : _o23.f;
o2.f;
}
x;
o2;
(_o2 = o2) === null || _o2 === void 0 ? void 0 : _o2.f;
(_o21 = o2) === null || _o21 === void 0 ? void 0 : _o21.f;
o2.f;
if (((_o3 = o3) === null || _o3 === void 0 ? void 0 : _o3.x) === 1) {
var _o32;
@ -72,31 +72,31 @@ if ((_o4_x = o4.x) === null || _o4_x === void 0 ? void 0 : _o4_x.y) {
o4.x;
(_o4_x1 = o4.x) === null || _o4_x1 === void 0 ? void 0 : _o4_x1.y;
o4.x.y;
if ((_o5_x_y_z = (_o5_x_y = o5.x) === null || _o5_x_y === void 0 ? void 0 : _o5_x_y.y.z) === null || _o5_x_y_z === void 0 ? void 0 : _o5_x_y_z.w) {
var _o5_x_y_z2, _o5_x_y_z3, _o5_x_y_z4, _o5_x_y3;
if ((_o5_x_y_z = (_o5_x = o5.x) === null || _o5_x === void 0 ? void 0 : _o5_x.y.z) === null || _o5_x_y_z === void 0 ? void 0 : _o5_x_y_z.w) {
var _o5_x_y_z2, _o5_x4, _o5_x_y_z3, _o5_x5;
o5.x;
o5.x.y;
o5.x.y.z;
o5.x.y.z.w; // true
(_o5_x_y_z2 = o5.x.y.z) === null || _o5_x_y_z2 === void 0 ? void 0 : _o5_x_y_z2.w; // true
(_o5_x_y_z3 = o5.x) === null || _o5_x_y_z3 === void 0 ? void 0 : _o5_x_y_z3.y.z.w; // true
(_o5_x_y_z4 = (_o5_x_y3 = o5.x) === null || _o5_x_y3 === void 0 ? void 0 : _o5_x_y3.y.z) === null || _o5_x_y_z4 === void 0 ? void 0 : _o5_x_y_z4.w; // true
(_o5_x4 = o5.x) === null || _o5_x4 === void 0 ? void 0 : _o5_x4.y.z.w; // true
(_o5_x_y_z3 = (_o5_x5 = o5.x) === null || _o5_x5 === void 0 ? void 0 : _o5_x5.y.z) === null || _o5_x_y_z3 === void 0 ? void 0 : _o5_x_y_z3.w; // true
} else {
var _o5_x1, _o5_x_y4, _o5_x_y_z5, _o5_x_y5;
var _o5_x6, _o5_x7, _o5_x_y_z4, _o5_x8;
o5.x;
(_o5_x1 = o5.x) === null || _o5_x1 === void 0 ? void 0 : _o5_x1.y;
(_o5_x_y4 = o5.x) === null || _o5_x_y4 === void 0 ? void 0 : _o5_x_y4.y.z;
(_o5_x_y_z5 = (_o5_x_y5 = o5.x) === null || _o5_x_y5 === void 0 ? void 0 : _o5_x_y5.y.z) === null || _o5_x_y_z5 === void 0 ? void 0 : _o5_x_y_z5.w;
(_o5_x6 = o5.x) === null || _o5_x6 === void 0 ? void 0 : _o5_x6.y;
(_o5_x7 = o5.x) === null || _o5_x7 === void 0 ? void 0 : _o5_x7.y.z;
(_o5_x_y_z4 = (_o5_x8 = o5.x) === null || _o5_x8 === void 0 ? void 0 : _o5_x8.y.z) === null || _o5_x_y_z4 === void 0 ? void 0 : _o5_x_y_z4.w;
o5.x.y;
o5.x.y.z.w;
}
o5.x;
(_o5_x = o5.x) === null || _o5_x === void 0 ? void 0 : _o5_x.y;
(_o5_x_y1 = o5.x) === null || _o5_x_y1 === void 0 ? void 0 : _o5_x_y1.y.z;
(_o5_x_y_z1 = (_o5_x_y2 = o5.x) === null || _o5_x_y2 === void 0 ? void 0 : _o5_x_y2.y.z) === null || _o5_x_y_z1 === void 0 ? void 0 : _o5_x_y_z1.w;
(_o5_x1 = o5.x) === null || _o5_x1 === void 0 ? void 0 : _o5_x1.y;
(_o5_x2 = o5.x) === null || _o5_x2 === void 0 ? void 0 : _o5_x2.y.z;
(_o5_x_y_z1 = (_o5_x3 = o5.x) === null || _o5_x3 === void 0 ? void 0 : _o5_x3.y.z) === null || _o5_x_y_z1 === void 0 ? void 0 : _o5_x_y_z1.w;
o5.x.y;
o5.x.y.z.w;
if ((_object2 = o6) === null || _object2 === void 0 ? void 0 : (_o6_f = _object2.f) === null || _o6_f === void 0 ? void 0 : _o6_f.call(_object2)) {
if ((_this2 = o6) === null || _this2 === void 0 ? void 0 : (_o6_f = _this2.f) === null || _o6_f === void 0 ? void 0 : _o6_f.call(_this2)) {
o6; // Derived
o6.f;
} else {
@ -132,14 +132,14 @@ function f01(x1) {
}
}
function f10(o1, value) {
var _o, _o1, _o_bar, _object, _o2, _o3, _o_bar1, _object1;
var _o, _o1, _o_bar, _this, _o2, _o3, _o_bar1, _this1;
if (((_o = o1) === null || _o === void 0 ? void 0 : _o.foo) === value) {
o1.foo;
}
if (((_o1 = o1) === null || _o1 === void 0 ? void 0 : _o1["foo"]) === value) {
o1["foo"];
}
if (((_object = o1) === null || _object === void 0 ? void 0 : (_o_bar = _object.bar) === null || _o_bar === void 0 ? void 0 : _o_bar.call(_object)) === value) {
if (((_this = o1) === null || _this === void 0 ? void 0 : (_o_bar = _this.bar) === null || _o_bar === void 0 ? void 0 : _o_bar.call(_this)) === value) {
o1.bar;
}
if (((_o2 = o1) === null || _o2 === void 0 ? void 0 : _o2.foo) == value) {
@ -148,19 +148,19 @@ function f10(o1, value) {
if (((_o3 = o1) === null || _o3 === void 0 ? void 0 : _o3["foo"]) == value) {
o1["foo"];
}
if (((_object1 = o1) === null || _object1 === void 0 ? void 0 : (_o_bar1 = _object1.bar) === null || _o_bar1 === void 0 ? void 0 : _o_bar1.call(_object1)) == value) {
if (((_this1 = o1) === null || _this1 === void 0 ? void 0 : (_o_bar1 = _this1.bar) === null || _o_bar1 === void 0 ? void 0 : _o_bar1.call(_this1)) == value) {
o1.bar;
}
}
function f11(o1, value) {
var _o, _o1, _o_bar, _object, _o2, _o3, _o_bar1, _object1;
var _o, _o1, _o_bar, _this, _o2, _o3, _o_bar1, _this1;
if (((_o = o1) === null || _o === void 0 ? void 0 : _o.foo) === value) {
o1.foo;
}
if (((_o1 = o1) === null || _o1 === void 0 ? void 0 : _o1["foo"]) === value) {
o1["foo"];
}
if (((_object = o1) === null || _object === void 0 ? void 0 : (_o_bar = _object.bar) === null || _o_bar === void 0 ? void 0 : _o_bar.call(_object)) === value) {
if (((_this = o1) === null || _this === void 0 ? void 0 : (_o_bar = _this.bar) === null || _o_bar === void 0 ? void 0 : _o_bar.call(_this)) === value) {
o1.bar;
}
if (((_o2 = o1) === null || _o2 === void 0 ? void 0 : _o2.foo) == value) {
@ -169,19 +169,19 @@ function f11(o1, value) {
if (((_o3 = o1) === null || _o3 === void 0 ? void 0 : _o3["foo"]) == value) {
o1["foo"];
}
if (((_object1 = o1) === null || _object1 === void 0 ? void 0 : (_o_bar1 = _object1.bar) === null || _o_bar1 === void 0 ? void 0 : _o_bar1.call(_object1)) == value) {
if (((_this1 = o1) === null || _this1 === void 0 ? void 0 : (_o_bar1 = _this1.bar) === null || _o_bar1 === void 0 ? void 0 : _o_bar1.call(_this1)) == value) {
o1.bar;
}
}
function f12(o1, value) {
var _o, _o1, _o_bar, _object, _o2, _o3, _o_bar1, _object1;
var _o, _o1, _o_bar, _this, _o2, _o3, _o_bar1, _this1;
if (((_o = o1) === null || _o === void 0 ? void 0 : _o.foo) === value) {
o1.foo; // Error
}
if (((_o1 = o1) === null || _o1 === void 0 ? void 0 : _o1["foo"]) === value) {
o1["foo"]; // Error
}
if (((_object = o1) === null || _object === void 0 ? void 0 : (_o_bar = _object.bar) === null || _o_bar === void 0 ? void 0 : _o_bar.call(_object)) === value) {
if (((_this = o1) === null || _this === void 0 ? void 0 : (_o_bar = _this.bar) === null || _o_bar === void 0 ? void 0 : _o_bar.call(_this)) === value) {
o1.bar; // Error
}
if (((_o2 = o1) === null || _o2 === void 0 ? void 0 : _o2.foo) == value) {
@ -190,19 +190,19 @@ function f12(o1, value) {
if (((_o3 = o1) === null || _o3 === void 0 ? void 0 : _o3["foo"]) == value) {
o1["foo"]; // Error
}
if (((_object1 = o1) === null || _object1 === void 0 ? void 0 : (_o_bar1 = _object1.bar) === null || _o_bar1 === void 0 ? void 0 : _o_bar1.call(_object1)) == value) {
if (((_this1 = o1) === null || _this1 === void 0 ? void 0 : (_o_bar1 = _this1.bar) === null || _o_bar1 === void 0 ? void 0 : _o_bar1.call(_this1)) == value) {
o1.bar; // Error
}
}
function f12a(o1, value) {
var _o, _o1, _o_bar, _object, _o2, _o3, _o_bar1, _object1;
var _o, _o1, _o_bar, _this, _o2, _o3, _o_bar1, _this1;
if (((_o = o1) === null || _o === void 0 ? void 0 : _o.foo) === value) {
o1.foo;
}
if (((_o1 = o1) === null || _o1 === void 0 ? void 0 : _o1["foo"]) === value) {
o1["foo"];
}
if (((_object = o1) === null || _object === void 0 ? void 0 : (_o_bar = _object.bar) === null || _o_bar === void 0 ? void 0 : _o_bar.call(_object)) === value) {
if (((_this = o1) === null || _this === void 0 ? void 0 : (_o_bar = _this.bar) === null || _o_bar === void 0 ? void 0 : _o_bar.call(_this)) === value) {
o1.bar;
}
if (((_o2 = o1) === null || _o2 === void 0 ? void 0 : _o2.foo) == value) {
@ -211,19 +211,19 @@ function f12a(o1, value) {
if (((_o3 = o1) === null || _o3 === void 0 ? void 0 : _o3["foo"]) == value) {
o1["foo"]; // Error
}
if (((_object1 = o1) === null || _object1 === void 0 ? void 0 : (_o_bar1 = _object1.bar) === null || _o_bar1 === void 0 ? void 0 : _o_bar1.call(_object1)) == value) {
if (((_this1 = o1) === null || _this1 === void 0 ? void 0 : (_o_bar1 = _this1.bar) === null || _o_bar1 === void 0 ? void 0 : _o_bar1.call(_this1)) == value) {
o1.bar; // Error
}
}
function f13(o1) {
var _o, _o1, _o_bar, _object, _o2, _o3, _o_bar1, _object1;
var _o, _o1, _o_bar, _this, _o2, _o3, _o_bar1, _this1;
if (((_o = o1) === null || _o === void 0 ? void 0 : _o.foo) !== undefined) {
o1.foo;
}
if (((_o1 = o1) === null || _o1 === void 0 ? void 0 : _o1["foo"]) !== undefined) {
o1["foo"];
}
if (((_object = o1) === null || _object === void 0 ? void 0 : (_o_bar = _object.bar) === null || _o_bar === void 0 ? void 0 : _o_bar.call(_object)) !== undefined) {
if (((_this = o1) === null || _this === void 0 ? void 0 : (_o_bar = _this.bar) === null || _o_bar === void 0 ? void 0 : _o_bar.call(_this)) !== undefined) {
o1.bar;
}
if (((_o2 = o1) === null || _o2 === void 0 ? void 0 : _o2.foo) != undefined) {
@ -232,19 +232,19 @@ function f13(o1) {
if (((_o3 = o1) === null || _o3 === void 0 ? void 0 : _o3["foo"]) != undefined) {
o1["foo"];
}
if (((_object1 = o1) === null || _object1 === void 0 ? void 0 : (_o_bar1 = _object1.bar) === null || _o_bar1 === void 0 ? void 0 : _o_bar1.call(_object1)) != undefined) {
if (((_this1 = o1) === null || _this1 === void 0 ? void 0 : (_o_bar1 = _this1.bar) === null || _o_bar1 === void 0 ? void 0 : _o_bar1.call(_this1)) != undefined) {
o1.bar;
}
}
function f13a(o1) {
var _o, _o1, _o_bar, _object, _o2, _o3, _o_bar1, _object1;
var _o, _o1, _o_bar, _this, _o2, _o3, _o_bar1, _this1;
if (((_o = o1) === null || _o === void 0 ? void 0 : _o.foo) !== null) {
o1.foo; // Error
}
if (((_o1 = o1) === null || _o1 === void 0 ? void 0 : _o1["foo"]) !== null) {
o1["foo"]; // Error
}
if (((_object = o1) === null || _object === void 0 ? void 0 : (_o_bar = _object.bar) === null || _o_bar === void 0 ? void 0 : _o_bar.call(_object)) !== null) {
if (((_this = o1) === null || _this === void 0 ? void 0 : (_o_bar = _this.bar) === null || _o_bar === void 0 ? void 0 : _o_bar.call(_this)) !== null) {
o1.bar; // Error
}
if (((_o2 = o1) === null || _o2 === void 0 ? void 0 : _o2.foo) != null) {
@ -253,19 +253,19 @@ function f13a(o1) {
if (((_o3 = o1) === null || _o3 === void 0 ? void 0 : _o3["foo"]) != null) {
o1["foo"];
}
if (((_object1 = o1) === null || _object1 === void 0 ? void 0 : (_o_bar1 = _object1.bar) === null || _o_bar1 === void 0 ? void 0 : _o_bar1.call(_object1)) != null) {
if (((_this1 = o1) === null || _this1 === void 0 ? void 0 : (_o_bar1 = _this1.bar) === null || _o_bar1 === void 0 ? void 0 : _o_bar1.call(_this1)) != null) {
o1.bar;
}
}
function f14(o1) {
var _o, _o1, _o_bar, _object;
var _o, _o1, _o_bar, _this;
if (((_o = o1) === null || _o === void 0 ? void 0 : _o.foo) !== undefined) {
o1.foo;
}
if (((_o1 = o1) === null || _o1 === void 0 ? void 0 : _o1["foo"]) !== undefined) {
o1["foo"];
}
if (((_object = o1) === null || _object === void 0 ? void 0 : (_o_bar = _object.bar) === null || _o_bar === void 0 ? void 0 : _o_bar.call(_object)) !== undefined) {
if (((_this = o1) === null || _this === void 0 ? void 0 : (_o_bar = _this.bar) === null || _o_bar === void 0 ? void 0 : _o_bar.call(_this)) !== undefined) {
o1.bar;
}
}
@ -339,14 +339,14 @@ function f16(o1) {
}
}
function f20(o1) {
var _o, _o1, _o_bar, _object, _o2;
var _o, _o1, _o_bar, _this, _o2;
if (typeof ((_o = o1) === null || _o === void 0 ? void 0 : _o.foo) === "number") {
o1.foo;
}
if (typeof ((_o1 = o1) === null || _o1 === void 0 ? void 0 : _o1["foo"]) === "number") {
o1["foo"];
}
if (typeof ((_object = o1) === null || _object === void 0 ? void 0 : (_o_bar = _object.bar) === null || _o_bar === void 0 ? void 0 : _o_bar.call(_object)) === "number") {
if (typeof ((_this = o1) === null || _this === void 0 ? void 0 : (_o_bar = _this.bar) === null || _o_bar === void 0 ? void 0 : _o_bar.call(_this)) === "number") {
o1.bar;
}
if (_instanceof((_o2 = o1) === null || _o2 === void 0 ? void 0 : _o2.baz, Error)) {
@ -354,14 +354,14 @@ function f20(o1) {
}
}
function f21(o1) {
var _o, _o1, _o_bar, _object, _o2;
var _o, _o1, _o_bar, _this, _o2;
if (typeof ((_o = o1) === null || _o === void 0 ? void 0 : _o.foo) === "number") {
o1.foo;
}
if (typeof ((_o1 = o1) === null || _o1 === void 0 ? void 0 : _o1["foo"]) === "number") {
o1["foo"];
}
if (typeof ((_object = o1) === null || _object === void 0 ? void 0 : (_o_bar = _object.bar) === null || _o_bar === void 0 ? void 0 : _o_bar.call(_object)) === "number") {
if (typeof ((_this = o1) === null || _this === void 0 ? void 0 : (_o_bar = _this.bar) === null || _o_bar === void 0 ? void 0 : _o_bar.call(_this)) === "number") {
o1.bar;
}
if (_instanceof((_o2 = o1) === null || _o2 === void 0 ? void 0 : _o2.baz, Error)) {

View File

@ -4,7 +4,7 @@ import "@swc/helpers/_/_type_of";
function someFunction(someOptionalObject) {
(null == someOptionalObject ? void 0 : someOptionalObject.someProperty) !== lastSomeProperty && (console.log(someOptionalObject), console.log(someOptionalObject.someProperty), lastSomeProperty = null == someOptionalObject ? void 0 : someOptionalObject.someProperty);
}
null === (_o = o) || void 0 === _o || _o[a = 1], a.toString(), null === (_o_x = o) || void 0 === _o_x || _o_x.x[b = 1], b.toString(), null === (_o1 = o) || void 0 === _o1 || _o1(c = 1), c.toString(), null === (_object = o) || void 0 === _object || null === (_o_x1 = _object.x) || void 0 === _o_x1 || _o_x1.call(_object, d = 1), d.toString(), null === (_f = f) || void 0 === _f || _f(x), x, f, f(x), x, f, f(x), (null === (_object1 = o2) || void 0 === _object1 ? void 0 : null === (_o2_f = _object1.f) || void 0 === _o2_f ? void 0 : _o2_f.call(_object1, x)) ? (x, o2.f, null === (_o21 = o2) || void 0 === _o21 || _o21.f, null === (_object3 = o2) || void 0 === _object3 || null === (_o2_f1 = _object3.f) || void 0 === _o2_f1 || _o2_f1.call(_object3, x)) : (x, o2, null === (_o22 = o2) || void 0 === _o22 || _o22.f, o2.f), x, o2, null === (_o2 = o2) || void 0 === _o2 || _o2.f, o2.f, (null === (_o3 = o3) || void 0 === _o3 ? void 0 : _o3.x) === 1 ? (o3, o3.x, null === (_o32 = o3) || void 0 === _o32 || _o32.x) : (o3, null === (_o33 = o3) || void 0 === _o33 || _o33.x, o3.x), o3, null === (_o31 = o3) || void 0 === _o31 || _o31.x, o3.x, (null === (_o4_x = o4.x) || void 0 === _o4_x ? void 0 : _o4_x.y) ? (o4.x, o4.x.y, null === (_o4_x2 = o4.x) || void 0 === _o4_x2 || _o4_x2.y) : (o4.x, null === (_o4_x3 = o4.x) || void 0 === _o4_x3 || _o4_x3.y, o4.x.y), o4.x, null === (_o4_x1 = o4.x) || void 0 === _o4_x1 || _o4_x1.y, o4.x.y, (null === (_o5_x_y_z = null === (_o5_x_y = o5.x) || void 0 === _o5_x_y ? void 0 : _o5_x_y.y.z) || void 0 === _o5_x_y_z ? void 0 : _o5_x_y_z.w) ? (o5.x, o5.x.y, o5.x.y.z, o5.x.y.z.w, null === (_o5_x_y_z2 = o5.x.y.z) || void 0 === _o5_x_y_z2 || _o5_x_y_z2.w, null === (_o5_x_y_z3 = o5.x) || void 0 === _o5_x_y_z3 || _o5_x_y_z3.y.z.w, null === (_o5_x_y_z4 = null === (_o5_x_y3 = o5.x) || void 0 === _o5_x_y3 ? void 0 : _o5_x_y3.y.z) || void 0 === _o5_x_y_z4 || _o5_x_y_z4.w) : (o5.x, null === (_o5_x1 = o5.x) || void 0 === _o5_x1 || _o5_x1.y, null === (_o5_x_y4 = o5.x) || void 0 === _o5_x_y4 || _o5_x_y4.y.z, null === (_o5_x_y_z5 = null === (_o5_x_y5 = o5.x) || void 0 === _o5_x_y5 ? void 0 : _o5_x_y5.y.z) || void 0 === _o5_x_y_z5 || _o5_x_y_z5.w, o5.x.y, o5.x.y.z.w), o5.x, null === (_o5_x = o5.x) || void 0 === _o5_x || _o5_x.y, null === (_o5_x_y1 = o5.x) || void 0 === _o5_x_y1 || _o5_x_y1.y.z, null === (_o5_x_y_z1 = null === (_o5_x_y2 = o5.x) || void 0 === _o5_x_y2 ? void 0 : _o5_x_y2.y.z) || void 0 === _o5_x_y_z1 || _o5_x_y_z1.w, o5.x.y, o5.x.y.z.w, (null === (_object2 = o6) || void 0 === _object2 ? void 0 : null === (_o6_f = _object2.f) || void 0 === _o6_f ? void 0 : _o6_f.call(_object2)) ? (o6, o6.f) : (o6, null === (_o61 = o6) || void 0 === _o61 || _o61.f, o6.f), o6, null === (_o6 = o6) || void 0 === _o6 || _o6.f, o6.f, someFunction({
null === (_o = o) || void 0 === _o || _o[a = 1], a.toString(), null === (_o1 = o) || void 0 === _o1 || _o1.x[b = 1], b.toString(), null === (_o2 = o) || void 0 === _o2 || _o2(c = 1), c.toString(), null === (_this = o) || void 0 === _this || null === (_o_x = _this.x) || void 0 === _o_x || _o_x.call(_this, d = 1), d.toString(), null === (_f = f) || void 0 === _f || _f(x), x, f, f(x), x, f, f(x), (null === (_this1 = o2) || void 0 === _this1 ? void 0 : null === (_o2_f = _this1.f) || void 0 === _o2_f ? void 0 : _o2_f.call(_this1, x)) ? (x, o2.f, null === (_o22 = o2) || void 0 === _o22 || _o22.f, null === (_this3 = o2) || void 0 === _this3 || null === (_o2_f1 = _this3.f) || void 0 === _o2_f1 || _o2_f1.call(_this3, x)) : (x, o2, null === (_o23 = o2) || void 0 === _o23 || _o23.f, o2.f), x, o2, null === (_o21 = o2) || void 0 === _o21 || _o21.f, o2.f, (null === (_o3 = o3) || void 0 === _o3 ? void 0 : _o3.x) === 1 ? (o3, o3.x, null === (_o32 = o3) || void 0 === _o32 || _o32.x) : (o3, null === (_o33 = o3) || void 0 === _o33 || _o33.x, o3.x), o3, null === (_o31 = o3) || void 0 === _o31 || _o31.x, o3.x, (null === (_o4_x = o4.x) || void 0 === _o4_x ? void 0 : _o4_x.y) ? (o4.x, o4.x.y, null === (_o4_x2 = o4.x) || void 0 === _o4_x2 || _o4_x2.y) : (o4.x, null === (_o4_x3 = o4.x) || void 0 === _o4_x3 || _o4_x3.y, o4.x.y), o4.x, null === (_o4_x1 = o4.x) || void 0 === _o4_x1 || _o4_x1.y, o4.x.y, (null === (_o5_x_y_z = null === (_o5_x = o5.x) || void 0 === _o5_x ? void 0 : _o5_x.y.z) || void 0 === _o5_x_y_z ? void 0 : _o5_x_y_z.w) ? (o5.x, o5.x.y, o5.x.y.z, o5.x.y.z.w, null === (_o5_x_y_z2 = o5.x.y.z) || void 0 === _o5_x_y_z2 || _o5_x_y_z2.w, null === (_o5_x4 = o5.x) || void 0 === _o5_x4 || _o5_x4.y.z.w, null === (_o5_x_y_z3 = null === (_o5_x5 = o5.x) || void 0 === _o5_x5 ? void 0 : _o5_x5.y.z) || void 0 === _o5_x_y_z3 || _o5_x_y_z3.w) : (o5.x, null === (_o5_x6 = o5.x) || void 0 === _o5_x6 || _o5_x6.y, null === (_o5_x7 = o5.x) || void 0 === _o5_x7 || _o5_x7.y.z, null === (_o5_x_y_z4 = null === (_o5_x8 = o5.x) || void 0 === _o5_x8 ? void 0 : _o5_x8.y.z) || void 0 === _o5_x_y_z4 || _o5_x_y_z4.w, o5.x.y, o5.x.y.z.w), o5.x, null === (_o5_x1 = o5.x) || void 0 === _o5_x1 || _o5_x1.y, null === (_o5_x2 = o5.x) || void 0 === _o5_x2 || _o5_x2.y.z, null === (_o5_x_y_z1 = null === (_o5_x3 = o5.x) || void 0 === _o5_x3 ? void 0 : _o5_x3.y.z) || void 0 === _o5_x_y_z1 || _o5_x_y_z1.w, o5.x.y, o5.x.y.z.w, (null === (_this2 = o6) || void 0 === _this2 ? void 0 : null === (_o6_f = _this2.f) || void 0 === _o6_f ? void 0 : _o6_f.call(_this2)) ? (o6, o6.f) : (o6, null === (_o61 = o6) || void 0 === _o61 || _o61.f, o6.f), o6, null === (_o6 = o6) || void 0 === _o6 || _o6.f, o6.f, someFunction({
someProperty: 42
}), someFunction(void 0);
for(var _o, _o_x, _o1, _o_x1, _object, _f, _o2_f, _object1, _o2, _o3, _o31, _o4_x, _o4_x1, _o5_x_y_z, _o5_x_y, _o5_x, _o5_x_y1, _o5_x_y_z1, _o5_x_y2, _o6_f, _object2, _o6, _arr_i, a, b, c, d, _o21, _o2_f1, _object3, _o22, _o32, _o33, _o4_x2, _o4_x3, _o5_x_y_z2, _o5_x_y_z3, _o5_x_y_z4, _o5_x_y3, _o5_x1, _o5_x_y4, _o5_x_y_z5, _o5_x_y5, _o61, lastSomeProperty, _arr_i1, i = 0; (null === (_arr_i = arr[i]) || void 0 === _arr_i ? void 0 : _arr_i.tag) === "left";)i += 1, (null === (_arr_i1 = arr[i]) || void 0 === _arr_i1 ? void 0 : _arr_i1.tag) === "right" && console.log("I should ALSO be reachable");
for(var _o, _o1, _o2, _o_x, _this, _f, _o2_f, _this1, _o21, _o3, _o31, _o4_x, _o4_x1, _o5_x_y_z, _o5_x, _o5_x1, _o5_x2, _o5_x_y_z1, _o5_x3, _o6_f, _this2, _o6, _arr_i, a, b, c, d, _o22, _o2_f1, _this3, _o23, _o32, _o33, _o4_x2, _o4_x3, _o5_x_y_z2, _o5_x4, _o5_x_y_z3, _o5_x5, _o5_x6, _o5_x7, _o5_x_y_z4, _o5_x8, _o61, lastSomeProperty, _arr_i1, i = 0; (null === (_arr_i = arr[i]) || void 0 === _arr_i ? void 0 : _arr_i.tag) === "left";)i += 1, (null === (_arr_i1 = arr[i]) || void 0 === _arr_i1 ? void 0 : _arr_i1.tag) === "right" && console.log("I should ALSO be reachable");

View File

@ -1,15 +1,15 @@
//// [deleteChain.ts]
var _o1, _o11, _o2_b, _o2_b1, _o3_b, _o3_b1, _o4_b_c_d, _o4_b_c, _obj, _o4_b_c1, _o4_b_c_d1, _o4_b_c2, _o5_b_c_d, _o5_b_c, _o5_b, _o5_b_c_d1, _o5_b_c1, _o5_b1, _o6_b_c_d, _o6_b_c, _o6_b_c_d1, _o6_b_c1;
var _o1, _o11, _o2, _o21, _o3_b, _o3_b1, _o4_b_c_d, _o4_b, _obj, _o4_b1, _o4_b_c_d1, _o4_b2, _o5_b_c_d, _o5_b, _object, _o5_b_c_d1, _o5_b1, _object1, _o6_b_c_d, _o6_b, _o6_b_c_d1, _o6_b1;
(_o1 = o1) === null || _o1 === void 0 ? void 0 : delete _o1.b;
delete ((_o11 = o1) === null || _o11 === void 0 ? void 0 : _o11.b);
(_o2_b = o2) === null || _o2_b === void 0 ? void 0 : delete _o2_b.b.c;
delete ((_o2_b1 = o2) === null || _o2_b1 === void 0 ? void 0 : _o2_b1.b.c);
(_o2 = o2) === null || _o2 === void 0 ? void 0 : delete _o2.b.c;
delete ((_o21 = o2) === null || _o21 === void 0 ? void 0 : _o21.b.c);
(_o3_b = o3.b) === null || _o3_b === void 0 ? void 0 : delete _o3_b.c;
delete ((_o3_b1 = o3.b) === null || _o3_b1 === void 0 ? void 0 : _o3_b1.c);
(_o4_b_c_d = (_o4_b_c = o4.b) === null || _o4_b_c === void 0 ? void 0 : _o4_b_c.c.d) === null || _o4_b_c_d === void 0 ? void 0 : delete _o4_b_c_d.e;
(_obj = (_o4_b_c1 = o4.b) === null || _o4_b_c1 === void 0 ? void 0 : _o4_b_c1.c.d) === null || _obj === void 0 ? void 0 : delete _obj.e;
delete ((_o4_b_c_d1 = (_o4_b_c2 = o4.b) === null || _o4_b_c2 === void 0 ? void 0 : _o4_b_c2.c.d) === null || _o4_b_c_d1 === void 0 ? void 0 : _o4_b_c_d1.e);
(_o5_b_c_d = (_o5_b_c = o5) === null || _o5_b_c === void 0 ? void 0 : ((_o5_b = _o5_b_c.b) === null || _o5_b === void 0 ? void 0 : _o5_b.call(_o5_b_c)).c.d) === null || _o5_b_c_d === void 0 ? void 0 : delete _o5_b_c_d.e;
delete ((_o5_b_c_d1 = (_o5_b_c1 = o5) === null || _o5_b_c1 === void 0 ? void 0 : ((_o5_b1 = _o5_b_c1.b) === null || _o5_b1 === void 0 ? void 0 : _o5_b1.call(_o5_b_c1)).c.d) === null || _o5_b_c_d1 === void 0 ? void 0 : _o5_b_c_d1.e);
(_o6_b_c_d = (_o6_b_c = o6.b) === null || _o6_b_c === void 0 ? void 0 : _o6_b_c["c"].d) === null || _o6_b_c_d === void 0 ? void 0 : delete _o6_b_c_d["e"];
delete ((_o6_b_c_d1 = (_o6_b_c1 = o6.b) === null || _o6_b_c1 === void 0 ? void 0 : _o6_b_c1["c"].d) === null || _o6_b_c_d1 === void 0 ? void 0 : _o6_b_c_d1["e"]);
(_o4_b_c_d = (_o4_b = o4.b) === null || _o4_b === void 0 ? void 0 : _o4_b.c.d) === null || _o4_b_c_d === void 0 ? void 0 : delete _o4_b_c_d.e;
(_obj = (_o4_b1 = o4.b) === null || _o4_b1 === void 0 ? void 0 : _o4_b1.c.d) === null || _obj === void 0 ? void 0 : delete _obj.e;
delete ((_o4_b_c_d1 = (_o4_b2 = o4.b) === null || _o4_b2 === void 0 ? void 0 : _o4_b2.c.d) === null || _o4_b_c_d1 === void 0 ? void 0 : _o4_b_c_d1.e);
(_o5_b_c_d = (_object = o5) === null || _object === void 0 ? void 0 : ((_o5_b = _object.b) === null || _o5_b === void 0 ? void 0 : _o5_b.call(_object)).c.d) === null || _o5_b_c_d === void 0 ? void 0 : delete _o5_b_c_d.e;
delete ((_o5_b_c_d1 = (_object1 = o5) === null || _object1 === void 0 ? void 0 : ((_o5_b1 = _object1.b) === null || _o5_b1 === void 0 ? void 0 : _o5_b1.call(_object1)).c.d) === null || _o5_b_c_d1 === void 0 ? void 0 : _o5_b_c_d1.e);
(_o6_b_c_d = (_o6_b = o6.b) === null || _o6_b === void 0 ? void 0 : _o6_b["c"].d) === null || _o6_b_c_d === void 0 ? void 0 : delete _o6_b_c_d["e"];
delete ((_o6_b_c_d1 = (_o6_b1 = o6.b) === null || _o6_b1 === void 0 ? void 0 : _o6_b1["c"].d) === null || _o6_b_c_d1 === void 0 ? void 0 : _o6_b_c_d1["e"]);

View File

@ -1,3 +1,3 @@
//// [deleteChain.ts]
var _o1, _o11, _o2_b, _o2_b1, _o3_b, _o3_b1, _o4_b_c_d, _o4_b_c, _obj, _o4_b_c1, _o4_b_c_d1, _o4_b_c2, _o5_b_c_d, _o5_b_c, _o5_b, _o5_b_c_d1, _o5_b_c1, _o5_b1, _o6_b_c_d, _o6_b_c, _o6_b_c_d1, _o6_b_c1;
null === (_o1 = o1) || void 0 === _o1 || delete _o1.b, delete (null === (_o11 = o1) || void 0 === _o11 ? void 0 : _o11.b), null === (_o2_b = o2) || void 0 === _o2_b || delete _o2_b.b.c, delete (null === (_o2_b1 = o2) || void 0 === _o2_b1 ? void 0 : _o2_b1.b.c), null === (_o3_b = o3.b) || void 0 === _o3_b || delete _o3_b.c, delete (null === (_o3_b1 = o3.b) || void 0 === _o3_b1 ? void 0 : _o3_b1.c), null === (_o4_b_c_d = null === (_o4_b_c = o4.b) || void 0 === _o4_b_c ? void 0 : _o4_b_c.c.d) || void 0 === _o4_b_c_d || delete _o4_b_c_d.e, null === (_obj = null === (_o4_b_c1 = o4.b) || void 0 === _o4_b_c1 ? void 0 : _o4_b_c1.c.d) || void 0 === _obj || delete _obj.e, delete (null === (_o4_b_c_d1 = null === (_o4_b_c2 = o4.b) || void 0 === _o4_b_c2 ? void 0 : _o4_b_c2.c.d) || void 0 === _o4_b_c_d1 ? void 0 : _o4_b_c_d1.e), null === (_o5_b_c_d = null === (_o5_b_c = o5) || void 0 === _o5_b_c ? void 0 : (null === (_o5_b = _o5_b_c.b) || void 0 === _o5_b ? void 0 : _o5_b.call(_o5_b_c)).c.d) || void 0 === _o5_b_c_d || delete _o5_b_c_d.e, delete (null === (_o5_b_c_d1 = null === (_o5_b_c1 = o5) || void 0 === _o5_b_c1 ? void 0 : (null === (_o5_b1 = _o5_b_c1.b) || void 0 === _o5_b1 ? void 0 : _o5_b1.call(_o5_b_c1)).c.d) || void 0 === _o5_b_c_d1 ? void 0 : _o5_b_c_d1.e), null === (_o6_b_c_d = null === (_o6_b_c = o6.b) || void 0 === _o6_b_c ? void 0 : _o6_b_c.c.d) || void 0 === _o6_b_c_d || delete _o6_b_c_d.e, delete (null === (_o6_b_c_d1 = null === (_o6_b_c1 = o6.b) || void 0 === _o6_b_c1 ? void 0 : _o6_b_c1.c.d) || void 0 === _o6_b_c_d1 ? void 0 : _o6_b_c_d1.e);
var _o1, _o11, _o2, _o21, _o3_b, _o3_b1, _o4_b_c_d, _o4_b, _obj, _o4_b1, _o4_b_c_d1, _o4_b2, _o5_b_c_d, _o5_b, _object, _o5_b_c_d1, _o5_b1, _object1, _o6_b_c_d, _o6_b, _o6_b_c_d1, _o6_b1;
null === (_o1 = o1) || void 0 === _o1 || delete _o1.b, delete (null === (_o11 = o1) || void 0 === _o11 ? void 0 : _o11.b), null === (_o2 = o2) || void 0 === _o2 || delete _o2.b.c, delete (null === (_o21 = o2) || void 0 === _o21 ? void 0 : _o21.b.c), null === (_o3_b = o3.b) || void 0 === _o3_b || delete _o3_b.c, delete (null === (_o3_b1 = o3.b) || void 0 === _o3_b1 ? void 0 : _o3_b1.c), null === (_o4_b_c_d = null === (_o4_b = o4.b) || void 0 === _o4_b ? void 0 : _o4_b.c.d) || void 0 === _o4_b_c_d || delete _o4_b_c_d.e, null === (_obj = null === (_o4_b1 = o4.b) || void 0 === _o4_b1 ? void 0 : _o4_b1.c.d) || void 0 === _obj || delete _obj.e, delete (null === (_o4_b_c_d1 = null === (_o4_b2 = o4.b) || void 0 === _o4_b2 ? void 0 : _o4_b2.c.d) || void 0 === _o4_b_c_d1 ? void 0 : _o4_b_c_d1.e), null === (_o5_b_c_d = null === (_object = o5) || void 0 === _object ? void 0 : (null === (_o5_b = _object.b) || void 0 === _o5_b ? void 0 : _o5_b.call(_object)).c.d) || void 0 === _o5_b_c_d || delete _o5_b_c_d.e, delete (null === (_o5_b_c_d1 = null === (_object1 = o5) || void 0 === _object1 ? void 0 : (null === (_o5_b1 = _object1.b) || void 0 === _o5_b1 ? void 0 : _o5_b1.call(_object1)).c.d) || void 0 === _o5_b_c_d1 ? void 0 : _o5_b_c_d1.e), null === (_o6_b_c_d = null === (_o6_b = o6.b) || void 0 === _o6_b ? void 0 : _o6_b.c.d) || void 0 === _o6_b_c_d || delete _o6_b_c_d.e, delete (null === (_o6_b_c_d1 = null === (_o6_b1 = o6.b) || void 0 === _o6_b1 ? void 0 : _o6_b1.c.d) || void 0 === _o6_b_c_d1 ? void 0 : _o6_b_c_d1.e);

View File

@ -1,19 +1,19 @@
//// [elementAccessChain.ts]
var _o1, _o2_b, _o2_b1, _o3_b, _o3_b1, _o4_b_c_d, _o4_b_c, _o4_b_c_d1, _o4_b_c1, _o5_b_c_d, _o5_b_c, _o5_b, _o5_b_c_d1, _o5_b_c1, _o5_b1, _o5_b_c_d2, _o5_b_c2, _o5_b2, _o5_b_c_d3, _o5_b_c3, _o5_b3, _o6, // GH#36031
_o2, _o21, _o22, _o23;
var _o1, _o2, _o21, _o3_b, _o3_b1, _o4_b_c_d, _o4_b, _o4_b_c_d1, _o4_b1, _o5_b_c_d, _o5_b, _object, _o5_b_c_d1, _o5_b1, _object1, _o5_b_c_d2, _o5_b2, _object2, _o5_b_c_d3, _o5_b3, _object3, _o6, // GH#36031
_o22, _o23, _o24, _o25;
(_o1 = o1) === null || _o1 === void 0 ? void 0 : _o1["b"];
(_o2_b = o2) === null || _o2_b === void 0 ? void 0 : _o2_b["b"].c;
(_o2_b1 = o2) === null || _o2_b1 === void 0 ? void 0 : _o2_b1.b["c"];
(_o2 = o2) === null || _o2 === void 0 ? void 0 : _o2["b"].c;
(_o21 = o2) === null || _o21 === void 0 ? void 0 : _o21.b["c"];
(_o3_b = o3["b"]) === null || _o3_b === void 0 ? void 0 : _o3_b.c;
(_o3_b1 = o3.b) === null || _o3_b1 === void 0 ? void 0 : _o3_b1["c"];
(_o4_b_c_d = (_o4_b_c = o4.b) === null || _o4_b_c === void 0 ? void 0 : _o4_b_c["c"].d) === null || _o4_b_c_d === void 0 ? void 0 : _o4_b_c_d.e;
(_o4_b_c_d1 = (_o4_b_c1 = o4.b) === null || _o4_b_c1 === void 0 ? void 0 : _o4_b_c1["c"].d) === null || _o4_b_c_d1 === void 0 ? void 0 : _o4_b_c_d1["e"];
(_o5_b_c_d = (_o5_b_c = o5) === null || _o5_b_c === void 0 ? void 0 : ((_o5_b = _o5_b_c.b) === null || _o5_b === void 0 ? void 0 : _o5_b.call(_o5_b_c))["c"].d) === null || _o5_b_c_d === void 0 ? void 0 : _o5_b_c_d.e;
(_o5_b_c_d1 = (_o5_b_c1 = o5) === null || _o5_b_c1 === void 0 ? void 0 : ((_o5_b1 = _o5_b_c1.b) === null || _o5_b1 === void 0 ? void 0 : _o5_b1.call(_o5_b_c1))["c"].d) === null || _o5_b_c_d1 === void 0 ? void 0 : _o5_b_c_d1["e"];
(_o5_b_c_d2 = (_o5_b_c2 = o5) === null || _o5_b_c2 === void 0 ? void 0 : ((_o5_b2 = _o5_b_c2["b"]) === null || _o5_b2 === void 0 ? void 0 : _o5_b2.call(_o5_b_c2))["c"].d) === null || _o5_b_c_d2 === void 0 ? void 0 : _o5_b_c_d2.e;
(_o5_b_c_d3 = (_o5_b_c3 = o5) === null || _o5_b_c3 === void 0 ? void 0 : ((_o5_b3 = _o5_b_c3["b"]) === null || _o5_b3 === void 0 ? void 0 : _o5_b3.call(_o5_b_c3))["c"].d) === null || _o5_b_c_d3 === void 0 ? void 0 : _o5_b_c_d3["e"];
(_o4_b_c_d = (_o4_b = o4.b) === null || _o4_b === void 0 ? void 0 : _o4_b["c"].d) === null || _o4_b_c_d === void 0 ? void 0 : _o4_b_c_d.e;
(_o4_b_c_d1 = (_o4_b1 = o4.b) === null || _o4_b1 === void 0 ? void 0 : _o4_b1["c"].d) === null || _o4_b_c_d1 === void 0 ? void 0 : _o4_b_c_d1["e"];
(_o5_b_c_d = (_object = o5) === null || _object === void 0 ? void 0 : ((_o5_b = _object.b) === null || _o5_b === void 0 ? void 0 : _o5_b.call(_object))["c"].d) === null || _o5_b_c_d === void 0 ? void 0 : _o5_b_c_d.e;
(_o5_b_c_d1 = (_object1 = o5) === null || _object1 === void 0 ? void 0 : ((_o5_b1 = _object1.b) === null || _o5_b1 === void 0 ? void 0 : _o5_b1.call(_object1))["c"].d) === null || _o5_b_c_d1 === void 0 ? void 0 : _o5_b_c_d1["e"];
(_o5_b_c_d2 = (_object2 = o5) === null || _object2 === void 0 ? void 0 : ((_o5_b2 = _object2["b"]) === null || _o5_b2 === void 0 ? void 0 : _o5_b2.call(_object2))["c"].d) === null || _o5_b_c_d2 === void 0 ? void 0 : _o5_b_c_d2.e;
(_o5_b_c_d3 = (_object3 = o5) === null || _object3 === void 0 ? void 0 : ((_o5_b3 = _object3["b"]) === null || _o5_b3 === void 0 ? void 0 : _o5_b3.call(_object3))["c"].d) === null || _o5_b_c_d3 === void 0 ? void 0 : _o5_b_c_d3["e"];
(_o6 = o6()) === null || _o6 === void 0 ? void 0 : _o6["x"];
((_o2 = o2) === null || _o2 === void 0 ? void 0 : _o2["b"]).c;
((_o21 = o2) === null || _o21 === void 0 ? void 0 : _o21["b"])["c"];
((_o22 = o2) === null || _o22 === void 0 ? void 0 : _o22["b"]).c;
((_o23 = o2) === null || _o23 === void 0 ? void 0 : _o23["b"])["c"];
((_o24 = o2) === null || _o24 === void 0 ? void 0 : _o24["b"]).c;
((_o25 = o2) === null || _o25 === void 0 ? void 0 : _o25["b"])["c"];

View File

@ -1,7 +1,7 @@
//// [elementAccessChain.2.ts]
var _o1, _o2_b, _o2_b1, _o3_b, _o3_b1;
var _o1, _o2, _o21, _o3_b, _o3_b1;
(_o1 = o1) === null || _o1 === void 0 ? void 0 : _o1["b"];
(_o2_b = o2) === null || _o2_b === void 0 ? void 0 : _o2_b["b"].c;
(_o2_b1 = o2) === null || _o2_b1 === void 0 ? void 0 : _o2_b1.b["c"];
(_o2 = o2) === null || _o2 === void 0 ? void 0 : _o2["b"].c;
(_o21 = o2) === null || _o21 === void 0 ? void 0 : _o21.b["c"];
(_o3_b = o3["b"]) === null || _o3_b === void 0 ? void 0 : _o3_b.c;
(_o3_b1 = o3.b) === null || _o3_b1 === void 0 ? void 0 : _o3_b1["c"];

View File

@ -1,3 +1,3 @@
//// [elementAccessChain.2.ts]
var _o1, _o2_b, _o2_b1, _o3_b, _o3_b1;
null === (_o1 = o1) || void 0 === _o1 || _o1.b, null === (_o2_b = o2) || void 0 === _o2_b || _o2_b.b.c, null === (_o2_b1 = o2) || void 0 === _o2_b1 || _o2_b1.b.c, null === (_o3_b = o3.b) || void 0 === _o3_b || _o3_b.c, null === (_o3_b1 = o3.b) || void 0 === _o3_b1 || _o3_b1.c;
var _o1, _o2, _o21, _o3_b, _o3_b1;
null === (_o1 = o1) || void 0 === _o1 || _o1.b, null === (_o2 = o2) || void 0 === _o2 || _o2.b.c, null === (_o21 = o2) || void 0 === _o21 || _o21.b.c, null === (_o3_b = o3.b) || void 0 === _o3_b || _o3_b.c, null === (_o3_b1 = o3.b) || void 0 === _o3_b1 || _o3_b1.c;

View File

@ -1,3 +1,3 @@
//// [elementAccessChain.ts]
var _o1, _o2_b, _o2_b1, _o3_b, _o3_b1, _o4_b_c_d, _o4_b_c, _o4_b_c_d1, _o4_b_c1, _o5_b_c_d, _o5_b_c, _o5_b, _o5_b_c_d1, _o5_b_c1, _o5_b1, _o5_b_c_d2, _o5_b_c2, _o5_b2, _o5_b_c_d3, _o5_b_c3, _o5_b3, _o6, _o2, _o21, _o22, _o23;
null === (_o1 = o1) || void 0 === _o1 || _o1.b, null === (_o2_b = o2) || void 0 === _o2_b || _o2_b.b.c, null === (_o2_b1 = o2) || void 0 === _o2_b1 || _o2_b1.b.c, null === (_o3_b = o3.b) || void 0 === _o3_b || _o3_b.c, null === (_o3_b1 = o3.b) || void 0 === _o3_b1 || _o3_b1.c, null === (_o4_b_c_d = null === (_o4_b_c = o4.b) || void 0 === _o4_b_c ? void 0 : _o4_b_c.c.d) || void 0 === _o4_b_c_d || _o4_b_c_d.e, null === (_o4_b_c_d1 = null === (_o4_b_c1 = o4.b) || void 0 === _o4_b_c1 ? void 0 : _o4_b_c1.c.d) || void 0 === _o4_b_c_d1 || _o4_b_c_d1.e, null === (_o5_b_c_d = null === (_o5_b_c = o5) || void 0 === _o5_b_c ? void 0 : (null === (_o5_b = _o5_b_c.b) || void 0 === _o5_b ? void 0 : _o5_b.call(_o5_b_c)).c.d) || void 0 === _o5_b_c_d || _o5_b_c_d.e, null === (_o5_b_c_d1 = null === (_o5_b_c1 = o5) || void 0 === _o5_b_c1 ? void 0 : (null === (_o5_b1 = _o5_b_c1.b) || void 0 === _o5_b1 ? void 0 : _o5_b1.call(_o5_b_c1)).c.d) || void 0 === _o5_b_c_d1 || _o5_b_c_d1.e, null === (_o5_b_c_d2 = null === (_o5_b_c2 = o5) || void 0 === _o5_b_c2 ? void 0 : (null === (_o5_b2 = _o5_b_c2.b) || void 0 === _o5_b2 ? void 0 : _o5_b2.call(_o5_b_c2)).c.d) || void 0 === _o5_b_c_d2 || _o5_b_c_d2.e, null === (_o5_b_c_d3 = null === (_o5_b_c3 = o5) || void 0 === _o5_b_c3 ? void 0 : (null === (_o5_b3 = _o5_b_c3.b) || void 0 === _o5_b3 ? void 0 : _o5_b3.call(_o5_b_c3)).c.d) || void 0 === _o5_b_c_d3 || _o5_b_c_d3.e, null === (_o6 = o6()) || void 0 === _o6 || _o6.x, (null === (_o2 = o2) || void 0 === _o2 ? void 0 : _o2.b).c, (null === (_o21 = o2) || void 0 === _o21 ? void 0 : _o21.b).c, (null === (_o22 = o2) || void 0 === _o22 ? void 0 : _o22.b).c, (null === (_o23 = o2) || void 0 === _o23 ? void 0 : _o23.b).c;
var _o1, _o2, _o21, _o3_b, _o3_b1, _o4_b_c_d, _o4_b, _o4_b_c_d1, _o4_b1, _o5_b_c_d, _o5_b, _object, _o5_b_c_d1, _o5_b1, _object1, _o5_b_c_d2, _o5_b2, _object2, _o5_b_c_d3, _o5_b3, _object3, _o6, _o22, _o23, _o24, _o25;
null === (_o1 = o1) || void 0 === _o1 || _o1.b, null === (_o2 = o2) || void 0 === _o2 || _o2.b.c, null === (_o21 = o2) || void 0 === _o21 || _o21.b.c, null === (_o3_b = o3.b) || void 0 === _o3_b || _o3_b.c, null === (_o3_b1 = o3.b) || void 0 === _o3_b1 || _o3_b1.c, null === (_o4_b_c_d = null === (_o4_b = o4.b) || void 0 === _o4_b ? void 0 : _o4_b.c.d) || void 0 === _o4_b_c_d || _o4_b_c_d.e, null === (_o4_b_c_d1 = null === (_o4_b1 = o4.b) || void 0 === _o4_b1 ? void 0 : _o4_b1.c.d) || void 0 === _o4_b_c_d1 || _o4_b_c_d1.e, null === (_o5_b_c_d = null === (_object = o5) || void 0 === _object ? void 0 : (null === (_o5_b = _object.b) || void 0 === _o5_b ? void 0 : _o5_b.call(_object)).c.d) || void 0 === _o5_b_c_d || _o5_b_c_d.e, null === (_o5_b_c_d1 = null === (_object1 = o5) || void 0 === _object1 ? void 0 : (null === (_o5_b1 = _object1.b) || void 0 === _o5_b1 ? void 0 : _o5_b1.call(_object1)).c.d) || void 0 === _o5_b_c_d1 || _o5_b_c_d1.e, null === (_o5_b_c_d2 = null === (_object2 = o5) || void 0 === _object2 ? void 0 : (null === (_o5_b2 = _object2.b) || void 0 === _o5_b2 ? void 0 : _o5_b2.call(_object2)).c.d) || void 0 === _o5_b_c_d2 || _o5_b_c_d2.e, null === (_o5_b_c_d3 = null === (_object3 = o5) || void 0 === _object3 ? void 0 : (null === (_o5_b3 = _object3.b) || void 0 === _o5_b3 ? void 0 : _o5_b3.call(_object3)).c.d) || void 0 === _o5_b_c_d3 || _o5_b_c_d3.e, null === (_o6 = o6()) || void 0 === _o6 || _o6.x, (null === (_o22 = o2) || void 0 === _o22 ? void 0 : _o22.b).c, (null === (_o23 = o2) || void 0 === _o23 ? void 0 : _o23.b).c, (null === (_o24 = o2) || void 0 === _o24 ? void 0 : _o24.b).c, (null === (_o25 = o2) || void 0 === _o25 ? void 0 : _o25.b).c;

View File

@ -2,8 +2,8 @@
// https://github.com/microsoft/TypeScript/issues/41814
var test = function(names) {
var // single-line comment
_names_filter, _object;
return (_object = names) === null || _object === void 0 ? void 0 : (_names_filter = _object.filter) === null || _names_filter === void 0 ? void 0 : _names_filter.call(_object, function(x) {
_names_filter, _this;
return (_this = names) === null || _this === void 0 ? void 0 : (_names_filter = _this.filter) === null || _names_filter === void 0 ? void 0 : _names_filter.call(_this, function(x) {
return x;
});
};

View File

@ -1,6 +1,6 @@
//// [optionalChainingInference.ts]
// https://github.com/microsoft/TypeScript/issues/34579
var _su, _su1, _su2, _fnu, _su3, _osu_prop, _osu_prop1, _ofnu_prop, _object;
var _su, _su1, _su2, _fnu, _su3, _osu, _osu1, _ofnu_prop, _this;
var b1 = {
value: (_su = su) === null || _su === void 0 ? void 0 : _su.length
};
@ -22,14 +22,14 @@ var b5 = {
};
var v5 = unbox(b5);
var b6 = {
value: (_osu_prop = osu) === null || _osu_prop === void 0 ? void 0 : _osu_prop.prop.length
value: (_osu = osu) === null || _osu === void 0 ? void 0 : _osu.prop.length
};
var v6 = unbox(b6);
var b7 = {
value: (_osu_prop1 = osu) === null || _osu_prop1 === void 0 ? void 0 : _osu_prop1.prop["length"]
value: (_osu1 = osu) === null || _osu1 === void 0 ? void 0 : _osu1.prop["length"]
};
var v7 = unbox(b7);
var b8 = {
value: (_object = ofnu) === null || _object === void 0 ? void 0 : (_ofnu_prop = _object.prop) === null || _ofnu_prop === void 0 ? void 0 : _ofnu_prop.call(_object)
value: (_this = ofnu) === null || _this === void 0 ? void 0 : (_ofnu_prop = _this.prop) === null || _ofnu_prop === void 0 ? void 0 : _ofnu_prop.call(_this)
};
var v8 = unbox(b8);

View File

@ -1,5 +1,5 @@
//// [optionalChainingInference.ts]
var _su, _su1, _su2, _fnu, _su3, _osu_prop, _osu_prop1, _ofnu_prop, _object, b1 = {
var _su, _su1, _su2, _fnu, _su3, _osu, _osu1, _ofnu_prop, _this, b1 = {
value: null === (_su = su) || void 0 === _su ? void 0 : _su.length
};
unbox(b1);
@ -20,14 +20,14 @@ var b5 = {
};
unbox(b5);
var b6 = {
value: null === (_osu_prop = osu) || void 0 === _osu_prop ? void 0 : _osu_prop.prop.length
value: null === (_osu = osu) || void 0 === _osu ? void 0 : _osu.prop.length
};
unbox(b6);
var b7 = {
value: null === (_osu_prop1 = osu) || void 0 === _osu_prop1 ? void 0 : _osu_prop1.prop.length
value: null === (_osu1 = osu) || void 0 === _osu1 ? void 0 : _osu1.prop.length
};
unbox(b7);
var b8 = {
value: null === (_object = ofnu) || void 0 === _object ? void 0 : null === (_ofnu_prop = _object.prop) || void 0 === _ofnu_prop ? void 0 : _ofnu_prop.call(_object)
value: null === (_this = ofnu) || void 0 === _this ? void 0 : null === (_ofnu_prop = _this.prop) || void 0 === _ofnu_prop ? void 0 : _ofnu_prop.call(_this)
};
unbox(b8);

View File

@ -1,6 +1,6 @@
//// [parentheses.ts]
var _o2, _o3_b, _object, _o4_b, _o4_b1;
var _o2, _o3_b, _this, _o4_b, _this1;
o1(o1 !== null && o1 !== void 0 ? o1 : 1);
((_o2 = o2) === null || _o2 === void 0 ? void 0 : _o2.b)(o1 !== null && o1 !== void 0 ? o1 : 1);
((_object = o3) === null || _object === void 0 ? void 0 : (_o3_b = _object.b) === null || _o3_b === void 0 ? void 0 : _o3_b.call(_object))(o1 !== null && o1 !== void 0 ? o1 : 1);
((_o4_b = o4) === null || _o4_b === void 0 ? void 0 : ((_o4_b1 = _o4_b.b) === null || _o4_b1 === void 0 ? void 0 : _o4_b1.call(_o4_b)).c)(o1 !== null && o1 !== void 0 ? o1 : 1);
((_this = o3) === null || _this === void 0 ? void 0 : (_o3_b = _this.b) === null || _o3_b === void 0 ? void 0 : _o3_b.call(_this))(o1 !== null && o1 !== void 0 ? o1 : 1);
((_this1 = o4) === null || _this1 === void 0 ? void 0 : ((_o4_b = _this1.b) === null || _o4_b === void 0 ? void 0 : _o4_b.call(_this1)).c)(o1 !== null && o1 !== void 0 ? o1 : 1);

View File

@ -1,3 +1,3 @@
//// [parentheses.ts]
var _o2, _o3_b, _object, _o4_b, _o4_b1;
o1(null != o1 ? o1 : 1), (null === (_o2 = o2) || void 0 === _o2 ? void 0 : _o2.b)(null != o1 ? o1 : 1), (null === (_object = o3) || void 0 === _object ? void 0 : null === (_o3_b = _object.b) || void 0 === _o3_b ? void 0 : _o3_b.call(_object))(null != o1 ? o1 : 1), (null === (_o4_b = o4) || void 0 === _o4_b ? void 0 : (null === (_o4_b1 = _o4_b.b) || void 0 === _o4_b1 ? void 0 : _o4_b1.call(_o4_b)).c)(null != o1 ? o1 : 1);
var _o2, _o3_b, _this, _o4_b, _this1;
o1(null != o1 ? o1 : 1), (null === (_o2 = o2) || void 0 === _o2 ? void 0 : _o2.b)(null != o1 ? o1 : 1), (null === (_this = o3) || void 0 === _this ? void 0 : null === (_o3_b = _this.b) || void 0 === _o3_b ? void 0 : _o3_b.call(_this))(null != o1 ? o1 : 1), (null === (_this1 = o4) || void 0 === _this1 ? void 0 : (null === (_o4_b = _this1.b) || void 0 === _o4_b ? void 0 : _o4_b.call(_this1)).c)(null != o1 ? o1 : 1);

View File

@ -1,13 +1,13 @@
//// [propertyAccessChain.ts]
var _o1, _o2_b, _o3_b, _o4_b_c_d, _o4_b_c, _o5_b_c_d, _o5_b_c, _o5_b, _o6, // GH#34109
var _o1, _o2, _o3_b, _o4_b_c_d, _o4_b, _o5_b_c_d, _o5_b, _object, _o6, // GH#34109
_o11, // GH#36031
_o2, _o21;
_o21, _o22;
(_o1 = o1) === null || _o1 === void 0 ? void 0 : _o1.b;
(_o2_b = o2) === null || _o2_b === void 0 ? void 0 : _o2_b.b.c;
(_o2 = o2) === null || _o2 === void 0 ? void 0 : _o2.b.c;
(_o3_b = o3.b) === null || _o3_b === void 0 ? void 0 : _o3_b.c;
(_o4_b_c_d = (_o4_b_c = o4.b) === null || _o4_b_c === void 0 ? void 0 : _o4_b_c.c.d) === null || _o4_b_c_d === void 0 ? void 0 : _o4_b_c_d.e;
(_o5_b_c_d = (_o5_b_c = o5) === null || _o5_b_c === void 0 ? void 0 : ((_o5_b = _o5_b_c.b) === null || _o5_b === void 0 ? void 0 : _o5_b.call(_o5_b_c)).c.d) === null || _o5_b_c_d === void 0 ? void 0 : _o5_b_c_d.e;
(_o4_b_c_d = (_o4_b = o4.b) === null || _o4_b === void 0 ? void 0 : _o4_b.c.d) === null || _o4_b_c_d === void 0 ? void 0 : _o4_b_c_d.e;
(_o5_b_c_d = (_object = o5) === null || _object === void 0 ? void 0 : ((_o5_b = _object.b) === null || _o5_b === void 0 ? void 0 : _o5_b.call(_object)).c.d) === null || _o5_b_c_d === void 0 ? void 0 : _o5_b_c_d.e;
(_o6 = o6()) === null || _o6 === void 0 ? void 0 : _o6.x;
((_o11 = o1) === null || _o11 === void 0 ? void 0 : _o11.b) ? 1 : 0;
((_o2 = o2) === null || _o2 === void 0 ? void 0 : _o2.b).c;
((_o21 = o2) === null || _o21 === void 0 ? void 0 : _o21.b).c;
((_o22 = o2) === null || _o22 === void 0 ? void 0 : _o22.b).c;

View File

@ -1,5 +1,5 @@
//// [propertyAccessChain.2.ts]
var _o1, _o2_b, _o3_b;
var _o1, _o2, _o3_b;
(_o1 = o1) === null || _o1 === void 0 ? void 0 : _o1.b;
(_o2_b = o2) === null || _o2_b === void 0 ? void 0 : _o2_b.b.c;
(_o2 = o2) === null || _o2 === void 0 ? void 0 : _o2.b.c;
(_o3_b = o3.b) === null || _o3_b === void 0 ? void 0 : _o3_b.c;

View File

@ -1,3 +1,3 @@
//// [propertyAccessChain.2.ts]
var _o1, _o2_b, _o3_b;
null === (_o1 = o1) || void 0 === _o1 || _o1.b, null === (_o2_b = o2) || void 0 === _o2_b || _o2_b.b.c, null === (_o3_b = o3.b) || void 0 === _o3_b || _o3_b.c;
var _o1, _o2, _o3_b;
null === (_o1 = o1) || void 0 === _o1 || _o1.b, null === (_o2 = o2) || void 0 === _o2 || _o2.b.c, null === (_o3_b = o3.b) || void 0 === _o3_b || _o3_b.c;

View File

@ -1,3 +1,3 @@
//// [propertyAccessChain.ts]
var _o1, _o2_b, _o3_b, _o4_b_c_d, _o4_b_c, _o5_b_c_d, _o5_b_c, _o5_b, _o6, _o11, _o2, _o21;
null === (_o1 = o1) || void 0 === _o1 || _o1.b, null === (_o2_b = o2) || void 0 === _o2_b || _o2_b.b.c, null === (_o3_b = o3.b) || void 0 === _o3_b || _o3_b.c, null === (_o4_b_c_d = null === (_o4_b_c = o4.b) || void 0 === _o4_b_c ? void 0 : _o4_b_c.c.d) || void 0 === _o4_b_c_d || _o4_b_c_d.e, null === (_o5_b_c_d = null === (_o5_b_c = o5) || void 0 === _o5_b_c ? void 0 : (null === (_o5_b = _o5_b_c.b) || void 0 === _o5_b ? void 0 : _o5_b.call(_o5_b_c)).c.d) || void 0 === _o5_b_c_d || _o5_b_c_d.e, null === (_o6 = o6()) || void 0 === _o6 || _o6.x, null === (_o11 = o1) || void 0 === _o11 || _o11.b, (null === (_o2 = o2) || void 0 === _o2 ? void 0 : _o2.b).c, (null === (_o21 = o2) || void 0 === _o21 ? void 0 : _o21.b).c;
var _o1, _o2, _o3_b, _o4_b_c_d, _o4_b, _o5_b_c_d, _o5_b, _object, _o6, _o11, _o21, _o22;
null === (_o1 = o1) || void 0 === _o1 || _o1.b, null === (_o2 = o2) || void 0 === _o2 || _o2.b.c, null === (_o3_b = o3.b) || void 0 === _o3_b || _o3_b.c, null === (_o4_b_c_d = null === (_o4_b = o4.b) || void 0 === _o4_b ? void 0 : _o4_b.c.d) || void 0 === _o4_b_c_d || _o4_b_c_d.e, null === (_o5_b_c_d = null === (_object = o5) || void 0 === _object ? void 0 : (null === (_o5_b = _object.b) || void 0 === _o5_b ? void 0 : _o5_b.call(_object)).c.d) || void 0 === _o5_b_c_d || _o5_b_c_d.e, null === (_o6 = o6()) || void 0 === _o6 || _o6.x, null === (_o11 = o1) || void 0 === _o11 || _o11.b, (null === (_o21 = o2) || void 0 === _o21 ? void 0 : _o21.b).c, (null === (_o22 = o2) || void 0 === _o22 ? void 0 : _o22.b).c;

View File

@ -6,7 +6,7 @@ import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of";
import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty";
import { _ as _set } from "@swc/helpers/_/_set";
import { _ as _update } from "@swc/helpers/_/_update";
var _C_x, _object, _C_x1, _object1;
var _C_x, _this, _C_x1, _this1;
class C extends B {
constructor(...args){
super(...args);
@ -19,9 +19,9 @@ class C extends B {
_define_property(C, "x", undefined);
_define_property(C, "y1", C.x);
_define_property(C, "y2", C.x());
_define_property(C, "y3", (_object = C) === null || _object === void 0 ? void 0 : (_C_x = _object.x) === null || _C_x === void 0 ? void 0 : _C_x.call(_object));
_define_property(C, "y3", (_this = C) === null || _this === void 0 ? void 0 : (_C_x = _this.x) === null || _C_x === void 0 ? void 0 : _C_x.call(_this));
_define_property(C, "y4", C["x"]());
_define_property(C, "y5", (_object1 = C) === null || _object1 === void 0 ? void 0 : (_C_x1 = _object1["x"]) === null || _C_x1 === void 0 ? void 0 : _C_x1.call(_object1));
_define_property(C, "y5", (_this1 = C) === null || _this1 === void 0 ? void 0 : (_C_x1 = _this1["x"]) === null || _C_x1 === void 0 ? void 0 : _C_x1.call(_this1));
_define_property(C, "z1", _get(_get_prototype_of(C), "a", C));
_define_property(C, "z2", _get(_get_prototype_of(C), "a", C));
_define_property(C, "z3", _get(_get_prototype_of(C), "f", C).call(C));

View File

@ -24,15 +24,15 @@ class C extends B {
C.y2 = C.x();
})();
(()=>{
var _C_x, _object;
C.y3 = (_object = C) === null || _object === void 0 ? void 0 : (_C_x = _object.x) === null || _C_x === void 0 ? void 0 : _C_x.call(_object);
var _C_x, _this;
C.y3 = (_this = C) === null || _this === void 0 ? void 0 : (_C_x = _this.x) === null || _C_x === void 0 ? void 0 : _C_x.call(_this);
})();
(()=>{
C.y4 = C["x"]();
})();
(()=>{
var _C_x, _object;
C.y5 = (_object = C) === null || _object === void 0 ? void 0 : (_C_x = _object["x"]) === null || _C_x === void 0 ? void 0 : _C_x.call(_object);
var _C_x, _this;
C.y5 = (_this = C) === null || _this === void 0 ? void 0 : (_C_x = _this["x"]) === null || _C_x === void 0 ? void 0 : _C_x.call(_this);
})();
(()=>{
C.z1 = _get(_get_prototype_of(C), "a", C);

View File

@ -6,7 +6,7 @@ import { _ as _get } from "@swc/helpers/_/_get";
import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of";
import { _ as _inherits } from "@swc/helpers/_/_inherits";
import { _ as _create_super } from "@swc/helpers/_/_create_super";
var _C_x, _object, _C_x1, _object1;
var _C_x, _this, _C_x1, _this1;
var C = /*#__PURE__*/ function(B1) {
"use strict";
_inherits(C, B1);
@ -26,8 +26,8 @@ var C = /*#__PURE__*/ function(B1) {
_define_property(C, "x", undefined);
_define_property(C, "y1", C.x);
_define_property(C, "y2", C.x());
_define_property(C, "y3", (_object = C) === null || _object === void 0 ? void 0 : (_C_x = _object.x) === null || _C_x === void 0 ? void 0 : _C_x.call(_object));
_define_property(C, "y3", (_this = C) === null || _this === void 0 ? void 0 : (_C_x = _this.x) === null || _C_x === void 0 ? void 0 : _C_x.call(_this));
_define_property(C, "y4", C["x"]());
_define_property(C, "y5", (_object1 = C) === null || _object1 === void 0 ? void 0 : (_C_x1 = _object1["x"]) === null || _C_x1 === void 0 ? void 0 : _C_x1.call(_object1));
_define_property(C, "y5", (_this1 = C) === null || _this1 === void 0 ? void 0 : (_C_x1 = _this1["x"]) === null || _C_x1 === void 0 ? void 0 : _C_x1.call(_this1));
_define_property(C, "z3", _get(_get_prototype_of(C), "f", C).call(C));
_define_property(C, "z4", _get(_get_prototype_of(C), "f", C).call(C));

View File

@ -31,15 +31,15 @@ var C = /*#__PURE__*/ function(B1) {
C.y2 = C.x();
})();
(function() {
var _C_x, _object;
C.y3 = (_object = C) === null || _object === void 0 ? void 0 : (_C_x = _object.x) === null || _C_x === void 0 ? void 0 : _C_x.call(_object);
var _C_x, _this;
C.y3 = (_this = C) === null || _this === void 0 ? void 0 : (_C_x = _this.x) === null || _C_x === void 0 ? void 0 : _C_x.call(_this);
})();
(function() {
C.y4 = C["x"]();
})();
(function() {
var _C_x, _object;
C.y5 = (_object = C) === null || _object === void 0 ? void 0 : (_C_x = _object["x"]) === null || _C_x === void 0 ? void 0 : _C_x.call(_object);
var _C_x, _this;
C.y5 = (_this = C) === null || _this === void 0 ? void 0 : (_C_x = _this["x"]) === null || _C_x === void 0 ? void 0 : _C_x.call(_this);
})();
(function() {
C.z3 = _get(_get_prototype_of(C), "f", C).call(C);

View File

@ -1,5 +1,5 @@
//// [thisTypeOptionalCall.ts]
function maybeBind(obj, fn) {
var _fn_bind, _object;
return (_object = fn) === null || _object === void 0 ? void 0 : (_fn_bind = _object.bind) === null || _fn_bind === void 0 ? void 0 : _fn_bind.call(_object, obj);
var _fn_bind, _this;
return (_this = fn) === null || _this === void 0 ? void 0 : (_fn_bind = _this.bind) === null || _fn_bind === void 0 ? void 0 : _fn_bind.call(_this, obj);
}

View File

@ -151,38 +151,34 @@ impl OptChaining {
if e.optional {
Ok(self.handle_optional_member(m, store_this_to))
} else {
let obj_name = alias_ident_for(&m.obj, "_obj");
let obj = match &mut *m.obj {
Expr::OptChain(obj) => {
if store_this_to.is_none() {
self.vars_without_init.push(VarDeclarator {
span: DUMMY_SP,
name: obj_name.clone().into(),
init: None,
definite: false,
});
}
match self.handle(
obj,
Some(store_this_to.clone().unwrap_or_else(|| obj_name.clone())),
) {
Expr::OptChain(obj) => match self.handle(obj, None) {
Ok(obj) => {
return Ok(CondExpr {
span: obj.span,
test: obj.test,
cons: obj.cons,
alt: Box::new(Expr::Member(MemberExpr {
alt: match store_this_to {
Some(this) => Box::new(Expr::Member(MemberExpr {
span: m.span,
obj: Box::new(Expr::Assign(AssignExpr {
span: DUMMY_SP,
op: op!("="),
left: this.into(),
right: obj.alt,
})),
prop: m.prop.take(),
})),
None => Box::new(Expr::Member(MemberExpr {
span: m.span,
obj: obj.alt,
prop: m.prop.take(),
})),
},
});
}
Err(obj) => Box::new(obj),
}
}
},
_ => {
m.obj.visit_mut_with(self);
m.obj.take()
@ -207,6 +203,7 @@ impl OptChaining {
OptChainBase::Call(call) => {
let callee_name = alias_ident_for(&call.callee, "_ref");
if e.optional {
self.vars_without_init.push(VarDeclarator {
span: DUMMY_SP,
name: callee_name.clone().into(),
@ -237,7 +234,9 @@ impl OptChaining {
.clone()
.make_member(quote_ident!("call"))
.as_callee(),
args: once(this_obj.as_arg()).chain(call.args.take()).collect(),
args: once(this_obj.as_arg())
.chain(call.args.take())
.collect(),
type_args: Default::default(),
}));
@ -325,7 +324,11 @@ impl OptChaining {
Ok(CondExpr {
span: DUMMY_SP,
test: init_and_eq_null_or_undefined(&callee_name, init, self.c.no_document_all),
test: init_and_eq_null_or_undefined(
&callee_name,
init,
self.c.no_document_all,
),
cons: undefined(DUMMY_SP),
alt: match this {
Some(this) => Box::new(Expr::Call(CallExpr {
@ -342,6 +345,76 @@ impl OptChaining {
})),
},
})
} else {
let callee = match &mut *call.callee {
Expr::OptChain(callee) => {
self.vars_without_init.push(VarDeclarator {
span: DUMMY_SP,
name: callee_name.clone().into(),
init: None,
definite: false,
});
let this_obj = store_this_to.unwrap_or_else(|| {
let v = private_ident!("_this");
self.vars_without_init.push(VarDeclarator {
span: DUMMY_SP,
name: v.clone().into(),
init: None,
definite: false,
});
v
});
let callee = self.handle(callee, Some(this_obj.clone()));
match callee {
Ok(cond) => {
return Ok(CondExpr {
span: DUMMY_SP,
test: cond.test,
cons: cond.cons,
alt: Box::new(Expr::Cond(CondExpr {
span: DUMMY_SP,
test: init_and_eq_null_or_undefined(
&callee_name,
cond.alt,
self.c.no_document_all,
),
cons: undefined(DUMMY_SP),
alt: Box::new(Expr::Call(CallExpr {
span: call.span,
callee: callee_name
.make_member(quote_ident!("call"))
.as_callee(),
args: once(this_obj.as_arg())
.chain(call.args.take())
.collect(),
type_args: Default::default(),
})),
})),
})
}
Err(callee) => Box::new(callee),
}
}
_ => {
call.callee.visit_mut_with(self);
call.callee.take()
}
};
call.args.visit_mut_with(self);
Err(Expr::Call(CallExpr {
span: call.span,
callee: callee.as_callee(),
args: call.args.take(),
type_args: Default::default(),
}))
}
}
}
}

View File

@ -155,27 +155,6 @@ test!(
void 0 ? void 0 : _obj_a.b;"
);
test!(
syntax(),
|_| tr(Default::default()),
simple_3,
"obj?.a?.b.c",
"var _obj_a_b, _obj;
(_obj_a_b = (_obj = obj) === null || _obj === void 0 ? void 0 : _obj.a) === null || _obj_a_b \
=== void 0 ? void 0 : _obj_a_b.b.c;"
);
// https://github.com/Brooooooklyn/swc-node/issues/62
test!(
syntax(),
|_| tr(Default::default()),
swc_node_issue_62,
"a.focus?.()",
"var _a_focus, _object;
(_object = a) === null || _object === void 0 ? void 0 : (_a_focus = _object.focus) === null || \
_a_focus === void 0 ? void 0 : _a_focus.call(_object);"
);
test_exec!(
syntax(),
|_| tr(Default::default()),
@ -197,37 +176,6 @@ test_exec!(
"
);
test!(
syntax(),
|_| tr(Default::default()),
swc_node_95_2,
"
obj?.a?.b?.c()
",
"
var _obj_a_b_c, _object, _obj_a, _obj;
(_object = (_obj_a = (_obj = obj) === null || _obj === void 0 ? void 0 : _obj.a) === null || \
_obj_a === void 0 ? void 0 : _obj_a.b) === null || _object === void 0 ? void 0 : (_obj_a_b_c \
= _object.c) === null || _obj_a_b_c === void 0 ? void 0 : _obj_a_b_c.call(_object);
"
);
test!(
syntax(),
|_| tr(Default::default()),
swc_node_95_3,
"
expect(obj?.a?.b?.c()).toBe(2)
",
"
var _obj_a_b_c, _object, _obj_a, _obj;
expect((_object = (_obj_a = (_obj = obj) === null || _obj === void 0 ? void 0 : _obj.a) === \
null || _obj_a === void 0 ? void 0 : _obj_a.b) === null || _object === void 0 ? void 0 : \
(_obj_a_b_c = _object.c) === null || _obj_a_b_c === void 0 ? void 0 : \
_obj_a_b_c.call(_object)).toBe(2);
"
);
test!(
syntax(),
|_| tr(Default::default()),
@ -315,7 +263,12 @@ fn exec(input: PathBuf) {
compare_stdout(
Default::default(),
|_| optional_chaining(Default::default()),
|_| {
optional_chaining(Config {
no_document_all: true,
..Default::default()
})
},
&src,
);
}

View File

@ -1,5 +1,5 @@
var _foo, _foo_bar, _object, _foo_bar1, _object1, _foo_bar2, _object2;
var _foo, _foo_bar, _this, _foo_bar1, _object, _foo_bar2, _object1;
(_foo = foo) == null ? void 0 : _foo(foo);
(_object = foo) == null ? void 0 : (_foo_bar = _object.bar) == null ? void 0 : _foo_bar.call(_object);
(_object1 = foo) == null ? void 0 : (_foo_bar1 = _object1.bar) == null ? void 0 : _foo_bar1.call(_object1, foo.bar, false);
(_object2 = foo) == null ? void 0 : (_foo_bar2 = _object2.bar) == null ? void 0 : _foo_bar2.call(_object2, foo.bar, true);
(_this = foo) == null ? void 0 : (_foo_bar = _this.bar) == null ? void 0 : _foo_bar.call(_this);
(_object = foo) == null ? void 0 : (_foo_bar1 = _object.bar) == null ? void 0 : _foo_bar1.call(_object, foo.bar, false);
(_object1 = foo) == null ? void 0 : (_foo_bar2 = _object1.bar) == null ? void 0 : _foo_bar2.call(_object1, foo.bar, true);

View File

@ -1,6 +1,6 @@
var _x, _a, _a_b_c_d, _a_b, _a_b_c, _a_b1, _a_b_c_d1, _a_b_c1, _a1;
var _x, _a, _a_b_c, _a_b, _a_b_c1, _a_b1, _a_b_c2, _this, _a1;
function f(a = (_x = x) == null ? void 0 : _x.y) {}
function g({ a , b =(_a = a) == null ? void 0 : _a.c }) {}
function h(a, { b =(_a_b_c_d = (_a_b = a.b) == null ? void 0 : _a_b.c) == null ? void 0 : _a_b_c_d.d.e }) {}
function i(a, { b =((_a_b_c = (_a_b1 = a.b) == null ? void 0 : _a_b1.c) == null ? void 0 : _a_b_c.d).e }) {}
function j(a, { b =(_a_b_c_d1 = (_a1 = a) == null ? void 0 : _a1.b) == null ? void 0 : ((_a_b_c1 = _a_b_c_d1.c) == null ? void 0 : _a_b_c1.call(_a_b_c_d1)).d.e }) {}
function g({ a, b = (_a = a) == null ? void 0 : _a.c }) {}
function h(a, { b = (_a_b_c = (_a_b = a.b) == null ? void 0 : _a_b.c) == null ? void 0 : _a_b_c.d.e }) {}
function i(a, { b = ((_a_b_c1 = (_a_b1 = a.b) == null ? void 0 : _a_b1.c) == null ? void 0 : _a_b_c1.d).e }) {}
function j(a, { b = (_this = (_a1 = a) == null ? void 0 : _a1.b) == null ? void 0 : ((_a_b_c2 = _this.c) == null ? void 0 : _a_b_c2.call(_this)).d.e }) {}

View File

@ -1,19 +1,19 @@
"use strict";
function test(foo) {
var _foo, _foo_bar, _foo1, _foo2, _foo_bar1, _object, _foo_get, _foo_bar2, _foo_bar3, _foo_bar_baz, _object1, _foo_bar_baz1, _object2, _foo_bar4, _object3, _foo_bar5, _object4, _foo_bar_baz2, _object5, _foo_bar_baz3, _object6, _foo3, _foo_bar_baz4, _object7, _foo_bar_baz5, _object8, _foo4;
var _foo, _foo_bar, _foo1, _foo2, _foo_bar1, _this, _foo_get, _foo_bar2, _foo_bar3, _foo_bar_baz, _object, _foo_bar_baz1, _object1, _foo_bar4, _object2, _foo_bar5, _object3, _foo_bar_baz2, _this1, _foo_bar_baz3, _this2, _foo3, _foo_bar_baz4, _object4, _foo_bar_baz5, _object5, _foo4;
(_foo = foo) == null ? void 0 : _foo.bar;
(_foo_bar = (_foo1 = foo) == null ? void 0 : _foo1.bar) == null ? void 0 : _foo_bar.baz;
(_foo2 = foo) == null ? void 0 : _foo2(foo);
(_object = foo) == null ? void 0 : (_foo_bar1 = _object.bar) == null ? void 0 : _foo_bar1.call(_object);
(_this = foo) == null ? void 0 : (_foo_bar1 = _this.bar) == null ? void 0 : _foo_bar1.call(_this);
(_foo_get = foo.get(bar)) == null ? void 0 : _foo_get();
(_foo_bar2 = foo.bar()) == null ? void 0 : _foo_bar2();
(_foo_bar3 = foo[bar]()) == null ? void 0 : _foo_bar3();
(_object1 = foo.bar()) == null ? void 0 : (_foo_bar_baz = _object1.baz) == null ? void 0 : _foo_bar_baz.call(_object1);
(_object2 = foo[bar]()) == null ? void 0 : (_foo_bar_baz1 = _object2.baz) == null ? void 0 : _foo_bar_baz1.call(_object2);
(_object3 = foo) == null ? void 0 : (_foo_bar4 = _object3.bar) == null ? void 0 : _foo_bar4.call(_object3, foo.bar, false);
(_object4 = foo) == null ? void 0 : (_foo_bar5 = _object4.bar) == null ? void 0 : _foo_bar5.call(_object4, foo.bar, true);
(_object5 = foo.bar) == null ? void 0 : (_foo_bar_baz2 = _object5.baz) == null ? void 0 : _foo_bar_baz2.call(_object5, foo.bar, false);
(_object6 = (_foo3 = foo) == null ? void 0 : _foo3.bar) == null ? void 0 : (_foo_bar_baz3 = _object6.baz) == null ? void 0 : _foo_bar_baz3.call(_object6, foo.bar, true);
(_object7 = foo.bar) == null ? void 0 : (_foo_bar_baz4 = _object7.baz) == null ? void 0 : _foo_bar_baz4.call(_object7, foo.bar, false);
(_object8 = (_foo4 = foo) == null ? void 0 : _foo4.bar) == null ? void 0 : (_foo_bar_baz5 = _object8.baz) == null ? void 0 : _foo_bar_baz5.call(_object8, foo.bar, true);
(_object = foo.bar()) == null ? void 0 : (_foo_bar_baz = _object.baz) == null ? void 0 : _foo_bar_baz.call(_object);
(_object1 = foo[bar]()) == null ? void 0 : (_foo_bar_baz1 = _object1.baz) == null ? void 0 : _foo_bar_baz1.call(_object1);
(_object2 = foo) == null ? void 0 : (_foo_bar4 = _object2.bar) == null ? void 0 : _foo_bar4.call(_object2, foo.bar, false);
(_object3 = foo) == null ? void 0 : (_foo_bar5 = _object3.bar) == null ? void 0 : _foo_bar5.call(_object3, foo.bar, true);
(_this1 = foo.bar) == null ? void 0 : (_foo_bar_baz2 = _this1.baz) == null ? void 0 : _foo_bar_baz2.call(_this1, foo.bar, false);
(_this2 = (_foo3 = foo) == null ? void 0 : _foo3.bar) == null ? void 0 : (_foo_bar_baz3 = _this2.baz) == null ? void 0 : _foo_bar_baz3.call(_this2, foo.bar, true);
(_object4 = foo.bar) == null ? void 0 : (_foo_bar_baz4 = _object4.baz) == null ? void 0 : _foo_bar_baz4.call(_object4, foo.bar, false);
(_object5 = (_foo4 = foo) == null ? void 0 : _foo4.bar) == null ? void 0 : (_foo_bar_baz5 = _object5.baz) == null ? void 0 : _foo_bar_baz5.call(_object5, foo.bar, true);
}

View File

@ -1,2 +1,2 @@
var _obj_a_b, _object, _obj;
(_object = (_obj = obj) === null || _obj === void 0 ? void 0 : _obj.a) === null || _object === void 0 ? void 0 : (_obj_a_b = _object.b) === null || _obj_a_b === void 0 ? void 0 : _obj_a_b.call(_object);
var _obj_a_b, _this, _obj;
(_this = (_obj = obj) === null || _obj === void 0 ? void 0 : _obj.a) === null || _this === void 0 ? void 0 : (_obj_a_b = _this.b) === null || _obj_a_b === void 0 ? void 0 : _obj_a_b.call(_this);

View File

@ -1,6 +1,6 @@
var _a_b, _object, _a_b1, _a_b2, _object1, _a_b3, _a_b4, _a_b5, _a_b6, _a_b7, _a_b8, _a_b9, _object2, _a_b10, _a_b_c, _object3, _a_b_c1, _a_b11, _object4, _a_b12;
(_object = a) === null || _object === void 0 ? void 0 : (_a_b = (_a_b1 = _object.b) === null || _a_b1 === void 0 ? void 0 : _a_b1.call(_object)) === null || _a_b === void 0 ? void 0 : _a_b.call(_object);
(_object1 = a) === null || _object1 === void 0 ? void 0 : (_a_b2 = (_a_b3 = (_a_b4 = _object1.b) === null || _a_b4 === void 0 ? void 0 : _a_b4.call(_object1)) === null || _a_b3 === void 0 ? void 0 : _a_b3.call(_object1)) === null || _a_b2 === void 0 ? void 0 : _a_b2.call(_object1);
(_a_b5 = a) === null || _a_b5 === void 0 ? void 0 : ((_a_b6 = (_a_b7 = _a_b5.b) === null || _a_b7 === void 0 ? void 0 : _a_b7.call(_a_b5)) === null || _a_b6 === void 0 ? void 0 : _a_b6.call(_a_b5)).c;
(_a_b8 = (_object2 = a) === null || _object2 === void 0 ? void 0 : (_a_b9 = (_a_b10 = _object2.b) === null || _a_b10 === void 0 ? void 0 : _a_b10.call(_object2)) === null || _a_b9 === void 0 ? void 0 : _a_b9.call(_object2)) === null || _a_b8 === void 0 ? void 0 : _a_b8.c;
(_object3 = (_object4 = a) === null || _object4 === void 0 ? void 0 : (_a_b11 = (_a_b12 = _object4.b) === null || _a_b12 === void 0 ? void 0 : _a_b12.call(_object4)) === null || _a_b11 === void 0 ? void 0 : _a_b11.call(_object4)) === null || _object3 === void 0 ? void 0 : (_a_b_c = (_a_b_c1 = _object3.c) === null || _a_b_c1 === void 0 ? void 0 : _a_b_c1.call(_object3)) === null || _a_b_c === void 0 ? void 0 : _a_b_c.call(_object3);
var _a_b, _this, _a_b1, _a_b2, _this1, _a_b3, _a_b4, _a_b5, _this2, _a_b6, _a_b7, _a_b8, _this3, _a_b9, _a_b_c, _this4, _a_b_c1, _a_b10, _this5, _a_b11;
(_this = a) === null || _this === void 0 ? void 0 : (_a_b = (_a_b1 = _this.b) === null || _a_b1 === void 0 ? void 0 : _a_b1.call(_this)) === null || _a_b === void 0 ? void 0 : _a_b.call(_this);
(_this1 = a) === null || _this1 === void 0 ? void 0 : (_a_b2 = (_a_b3 = (_a_b4 = _this1.b) === null || _a_b4 === void 0 ? void 0 : _a_b4.call(_this1)) === null || _a_b3 === void 0 ? void 0 : _a_b3.call(_this1)) === null || _a_b2 === void 0 ? void 0 : _a_b2.call(_this1);
(_this2 = a) === null || _this2 === void 0 ? void 0 : ((_a_b5 = (_a_b6 = _this2.b) === null || _a_b6 === void 0 ? void 0 : _a_b6.call(_this2)) === null || _a_b5 === void 0 ? void 0 : _a_b5.call(_this2)).c;
(_a_b7 = (_this3 = a) === null || _this3 === void 0 ? void 0 : (_a_b8 = (_a_b9 = _this3.b) === null || _a_b9 === void 0 ? void 0 : _a_b9.call(_this3)) === null || _a_b8 === void 0 ? void 0 : _a_b8.call(_this3)) === null || _a_b7 === void 0 ? void 0 : _a_b7.c;
(_this4 = (_this5 = a) === null || _this5 === void 0 ? void 0 : (_a_b10 = (_a_b11 = _this5.b) === null || _a_b11 === void 0 ? void 0 : _a_b11.call(_this5)) === null || _a_b10 === void 0 ? void 0 : _a_b10.call(_this5)) === null || _this4 === void 0 ? void 0 : (_a_b_c = (_a_b_c1 = _this4.c) === null || _a_b_c1 === void 0 ? void 0 : _a_b_c1.call(_this4)) === null || _a_b_c === void 0 ? void 0 : _a_b_c.call(_this4);

View File

@ -1,11 +1,11 @@
"use strict";
var _obj_a, _obj, _obj_a1, _obj_b, _obj1, _obj2;
var _obj_a, _obj, _obj1, _obj_b, _obj2, _obj3;
const obj = {
a: {
b: 0
}
};
let test = (_obj_a = (_obj = obj) === null || _obj === void 0 ? void 0 : _obj.a) === null || _obj_a === void 0 ? void 0 : delete _obj_a.b;
test = (_obj_a1 = obj) === null || _obj_a1 === void 0 ? void 0 : delete _obj_a1.a.b;
test = (_obj_b = (_obj1 = obj) === null || _obj1 === void 0 ? void 0 : _obj1.b) === null || _obj_b === void 0 ? void 0 : delete _obj_b.b;
(_obj2 = obj) === null || _obj2 === void 0 ? void 0 : delete _obj2.a;
test = (_obj1 = obj) === null || _obj1 === void 0 ? void 0 : delete _obj1.a.b;
test = (_obj_b = (_obj2 = obj) === null || _obj2 === void 0 ? void 0 : _obj2.b) === null || _obj_b === void 0 ? void 0 : delete _obj_b.b;
(_obj3 = obj) === null || _obj3 === void 0 ? void 0 : delete _obj3.a;

View File

@ -1,12 +1,12 @@
var _foo, _foo_bar, _object, _foo_bar1, _object1, _foo_bar2, _object2, _foo1, _foo2, _foo3, _foo4, _foo_bar3, _foo_bar4, _foo_bar5, _foo_bar6, _object3, _foo_bar7, _foo_bar8, _foo_bar9, _foo_bar10, _object4, _foo_bar11, _object5, _foo_bar12;
var _foo, _foo_bar, _this, _foo_bar1, _object, _foo_bar2, _object1, _foo1, _foo2, _foo3, _foo_bar3, _object2, _foo_bar4, _foo_bar5, _object3, _foo_bar6, _object4, _foo_bar7, _foo_bar8, _object5, _foo_bar9, _object6, _foo_bar10;
(_foo = foo) === null || _foo === void 0 ? void 0 : _foo(foo);
(_object = foo) === null || _object === void 0 ? void 0 : (_foo_bar = _object.bar) === null || _foo_bar === void 0 ? void 0 : _foo_bar.call(_object);
(_object1 = foo) === null || _object1 === void 0 ? void 0 : (_foo_bar1 = _object1.bar) === null || _foo_bar1 === void 0 ? void 0 : _foo_bar1.call(_object1, foo.bar, false);
(_object2 = foo) === null || _object2 === void 0 ? void 0 : (_foo_bar2 = _object2.bar) === null || _foo_bar2 === void 0 ? void 0 : _foo_bar2.call(_object2, foo.bar, true);
(_foo2 = foo) === null || _foo2 === void 0 ? void 0 : _foo2().bar;
(_foo3 = (_foo4 = foo) === null || _foo4 === void 0 ? void 0 : _foo4()) === null || _foo3 === void 0 ? void 0 : _foo3.bar;
(_foo_bar3 = foo) === null || _foo_bar3 === void 0 ? void 0 : ((_foo_bar4 = _foo_bar3.bar) === null || _foo_bar4 === void 0 ? void 0 : _foo_bar4.call(_foo_bar3)).baz;
(_foo_bar5 = (_object3 = foo) === null || _object3 === void 0 ? void 0 : (_foo_bar6 = _object3.bar) === null || _foo_bar6 === void 0 ? void 0 : _foo_bar6.call(_object3)) === null || _foo_bar5 === void 0 ? void 0 : _foo_bar5.baz;
(_foo_bar7 = foo) === null || _foo_bar7 === void 0 ? void 0 : ((_foo_bar8 = _foo_bar7.bar) === null || _foo_bar8 === void 0 ? void 0 : _foo_bar8.call(_foo_bar7)).baz;
(_foo_bar9 = (_object4 = foo) === null || _object4 === void 0 ? void 0 : (_foo_bar10 = _object4.bar) === null || _foo_bar10 === void 0 ? void 0 : _foo_bar10.call(_object4)) === null || _foo_bar9 === void 0 ? void 0 : _foo_bar9.baz;
(_object5 = foo) === null || _object5 === void 0 ? void 0 : (_foo_bar11 = (_foo_bar12 = _object5.bar) === null || _foo_bar12 === void 0 ? void 0 : _foo_bar12.call(_object5)) === null || _foo_bar11 === void 0 ? void 0 : _foo_bar11.call(_object5);
(_this = foo) === null || _this === void 0 ? void 0 : (_foo_bar = _this.bar) === null || _foo_bar === void 0 ? void 0 : _foo_bar.call(_this);
(_object = foo) === null || _object === void 0 ? void 0 : (_foo_bar1 = _object.bar) === null || _foo_bar1 === void 0 ? void 0 : _foo_bar1.call(_object, foo.bar, false);
(_object1 = foo) === null || _object1 === void 0 ? void 0 : (_foo_bar2 = _object1.bar) === null || _foo_bar2 === void 0 ? void 0 : _foo_bar2.call(_object1, foo.bar, true);
(_foo1 = foo) === null || _foo1 === void 0 ? void 0 : _foo1().bar;
(_foo2 = (_foo3 = foo) === null || _foo3 === void 0 ? void 0 : _foo3()) === null || _foo2 === void 0 ? void 0 : _foo2.bar;
(_object2 = foo) === null || _object2 === void 0 ? void 0 : ((_foo_bar3 = _object2.bar) === null || _foo_bar3 === void 0 ? void 0 : _foo_bar3.call(_object2)).baz;
(_foo_bar4 = (_object3 = foo) === null || _object3 === void 0 ? void 0 : (_foo_bar5 = _object3.bar) === null || _foo_bar5 === void 0 ? void 0 : _foo_bar5.call(_object3)) === null || _foo_bar4 === void 0 ? void 0 : _foo_bar4.baz;
(_object4 = foo) === null || _object4 === void 0 ? void 0 : ((_foo_bar6 = _object4.bar) === null || _foo_bar6 === void 0 ? void 0 : _foo_bar6.call(_object4)).baz;
(_foo_bar7 = (_object5 = foo) === null || _object5 === void 0 ? void 0 : (_foo_bar8 = _object5.bar) === null || _foo_bar8 === void 0 ? void 0 : _foo_bar8.call(_object5)) === null || _foo_bar7 === void 0 ? void 0 : _foo_bar7.baz;
(_object6 = foo) === null || _object6 === void 0 ? void 0 : (_foo_bar9 = (_foo_bar10 = _object6.bar) === null || _foo_bar10 === void 0 ? void 0 : _foo_bar10.call(_object6)) === null || _foo_bar9 === void 0 ? void 0 : _foo_bar9.call(_object6);

View File

@ -1,11 +1,11 @@
var _foo, _a_b_c_d, _a_b, _a_b_c_d1, _a_b_c, _a_b_c_d2, _a_b_c1, _orders_, _orders_1, _orders, _client, _orders_client_key, _a, _c, _a1;
var _foo, _a_b_c, _a, _a_b_c_d, _a_b, _a_b_c_d1, _a_b_c1, _orders, _orders_, _orders1, _client, _orders_client_key, _a1, _c, _a2;
(_foo = foo) === null || _foo === void 0 ? void 0 : _foo.bar;
(_a_b_c_d = (_a_b = a) === null || _a_b === void 0 ? void 0 : _a_b.b.c) === null || _a_b_c_d === void 0 ? void 0 : _a_b_c_d.d.e;
(_a_b_c_d1 = (_a_b_c = a.b) === null || _a_b_c === void 0 ? void 0 : _a_b_c.c.d) === null || _a_b_c_d1 === void 0 ? void 0 : _a_b_c_d1.e;
(_a_b_c_d2 = (_a_b_c1 = a.b.c) === null || _a_b_c1 === void 0 ? void 0 : _a_b_c1.d) === null || _a_b_c_d2 === void 0 ? void 0 : _a_b_c_d2.e;
(_orders_ = orders) === null || _orders_ === void 0 ? void 0 : _orders_[0].price;
(_orders_1 = (_orders = orders) === null || _orders === void 0 ? void 0 : _orders[0]) === null || _orders_1 === void 0 ? void 0 : _orders_1.price;
(_a_b_c = (_a = a) === null || _a === void 0 ? void 0 : _a.b.c) === null || _a_b_c === void 0 ? void 0 : _a_b_c.d.e;
(_a_b_c_d = (_a_b = a.b) === null || _a_b === void 0 ? void 0 : _a_b.c.d) === null || _a_b_c_d === void 0 ? void 0 : _a_b_c_d.e;
(_a_b_c_d1 = (_a_b_c1 = a.b.c) === null || _a_b_c1 === void 0 ? void 0 : _a_b_c1.d) === null || _a_b_c_d1 === void 0 ? void 0 : _a_b_c_d1.e;
(_orders = orders) === null || _orders === void 0 ? void 0 : _orders[0].price;
(_orders_ = (_orders1 = orders) === null || _orders1 === void 0 ? void 0 : _orders1[0]) === null || _orders_ === void 0 ? void 0 : _orders_.price;
orders[(_client = client) === null || _client === void 0 ? void 0 : _client.key].price;
(_orders_client_key = orders[client.key]) === null || _orders_client_key === void 0 ? void 0 : _orders_client_key.price;
(0, (_a = a) === null || _a === void 0 ? void 0 : _a.b).c;
(0, (_c = (0, (_a1 = a) === null || _a1 === void 0 ? void 0 : _a1.b).c) === null || _c === void 0 ? void 0 : _c.d).e;
(0, (_a1 = a) === null || _a1 === void 0 ? void 0 : _a1.b).c;
(0, (_c = (0, (_a2 = a) === null || _a2 === void 0 ? void 0 : _a2.b).c) === null || _c === void 0 ? void 0 : _c.d).e;

View File

@ -1,13 +1,13 @@
function test(foo) {
var _foo, _foo_bar, _foo1, _foo2, _foo_bar1, _object, _foo_bar2, _object1, _foo_bar3, _object2, _foo_bar_baz, _object3, _foo_bar_baz1, _object4, _foo3, _foo_bar_baz2, _object5, _foo_bar_baz3, _object6, _foo4;
var _foo, _foo_bar, _foo1, _foo2, _foo_bar1, _this, _foo_bar2, _object, _foo_bar3, _object1, _foo_bar_baz, _this1, _foo_bar_baz1, _this2, _foo3, _foo_bar_baz2, _object2, _foo_bar_baz3, _object3, _foo4;
(_foo = foo) === null || _foo === void 0 ? void 0 : _foo.bar;
(_foo_bar = (_foo1 = foo) === null || _foo1 === void 0 ? void 0 : _foo1.bar) === null || _foo_bar === void 0 ? void 0 : _foo_bar.baz;
(_foo2 = foo) === null || _foo2 === void 0 ? void 0 : _foo2(foo);
(_object = foo) === null || _object === void 0 ? void 0 : (_foo_bar1 = _object.bar) === null || _foo_bar1 === void 0 ? void 0 : _foo_bar1.call(_object);
(_object1 = foo) === null || _object1 === void 0 ? void 0 : (_foo_bar2 = _object1.bar) === null || _foo_bar2 === void 0 ? void 0 : _foo_bar2.call(_object1, foo.bar, false);
(_object2 = foo) === null || _object2 === void 0 ? void 0 : (_foo_bar3 = _object2.bar) === null || _foo_bar3 === void 0 ? void 0 : _foo_bar3.call(_object2, foo.bar, true);
(_object3 = foo.bar) === null || _object3 === void 0 ? void 0 : (_foo_bar_baz = _object3.baz) === null || _foo_bar_baz === void 0 ? void 0 : _foo_bar_baz.call(_object3, foo.bar, false);
(_object4 = (_foo3 = foo) === null || _foo3 === void 0 ? void 0 : _foo3.bar) === null || _object4 === void 0 ? void 0 : (_foo_bar_baz1 = _object4.baz) === null || _foo_bar_baz1 === void 0 ? void 0 : _foo_bar_baz1.call(_object4, foo.bar, true);
(_object5 = foo.bar) === null || _object5 === void 0 ? void 0 : (_foo_bar_baz2 = _object5.baz) === null || _foo_bar_baz2 === void 0 ? void 0 : _foo_bar_baz2.call(_object5, foo.bar, false);
(_object6 = (_foo4 = foo) === null || _foo4 === void 0 ? void 0 : _foo4.bar) === null || _object6 === void 0 ? void 0 : (_foo_bar_baz3 = _object6.baz) === null || _foo_bar_baz3 === void 0 ? void 0 : _foo_bar_baz3.call(_object6, foo.bar, true);
(_this = foo) === null || _this === void 0 ? void 0 : (_foo_bar1 = _this.bar) === null || _foo_bar1 === void 0 ? void 0 : _foo_bar1.call(_this);
(_object = foo) === null || _object === void 0 ? void 0 : (_foo_bar2 = _object.bar) === null || _foo_bar2 === void 0 ? void 0 : _foo_bar2.call(_object, foo.bar, false);
(_object1 = foo) === null || _object1 === void 0 ? void 0 : (_foo_bar3 = _object1.bar) === null || _foo_bar3 === void 0 ? void 0 : _foo_bar3.call(_object1, foo.bar, true);
(_this1 = foo.bar) === null || _this1 === void 0 ? void 0 : (_foo_bar_baz = _this1.baz) === null || _foo_bar_baz === void 0 ? void 0 : _foo_bar_baz.call(_this1, foo.bar, false);
(_this2 = (_foo3 = foo) === null || _foo3 === void 0 ? void 0 : _foo3.bar) === null || _this2 === void 0 ? void 0 : (_foo_bar_baz1 = _this2.baz) === null || _foo_bar_baz1 === void 0 ? void 0 : _foo_bar_baz1.call(_this2, foo.bar, true);
(_object2 = foo.bar) === null || _object2 === void 0 ? void 0 : (_foo_bar_baz2 = _object2.baz) === null || _foo_bar_baz2 === void 0 ? void 0 : _foo_bar_baz2.call(_object2, foo.bar, false);
(_object3 = (_foo4 = foo) === null || _foo4 === void 0 ? void 0 : _foo4.bar) === null || _object3 === void 0 ? void 0 : (_foo_bar_baz3 = _object3.baz) === null || _foo_bar_baz3 === void 0 ? void 0 : _foo_bar_baz3.call(_object3, foo.bar, true);
}

View File

@ -1,11 +1,11 @@
"use strict";
var _obj_a, _obj, _obj_a1, _obj_b, _obj1, _obj_b1, _obj2;
var _obj_a, _obj, _obj1, _obj_b, _obj2, _obj_b1, _obj3;
const obj = {
a: {
b: 0
}
};
let test = +((_obj_a = (_obj = obj) === null || _obj === void 0 ? void 0 : _obj.a) === null || _obj_a === void 0 ? void 0 : _obj_a.b);
test = +((_obj_a1 = obj) === null || _obj_a1 === void 0 ? void 0 : _obj_a1.a.b);
test = +((_obj_b = (_obj1 = obj) === null || _obj1 === void 0 ? void 0 : _obj1.b) === null || _obj_b === void 0 ? void 0 : _obj_b.b);
test = +((_obj_b1 = (_obj2 = obj) === null || _obj2 === void 0 ? void 0 : _obj2.b) === null || _obj_b1 === void 0 ? void 0 : _obj_b1.b);
test = +((_obj1 = obj) === null || _obj1 === void 0 ? void 0 : _obj1.a.b);
test = +((_obj_b = (_obj2 = obj) === null || _obj2 === void 0 ? void 0 : _obj2.b) === null || _obj_b === void 0 ? void 0 : _obj_b.b);
test = +((_obj_b1 = (_obj3 = obj) === null || _obj3 === void 0 ? void 0 : _obj3.b) === null || _obj_b1 === void 0 ? void 0 : _obj_b1.b);

View File

@ -1,2 +1,2 @@
var _a_b_c, _object;
(_object = a) === null || _object === void 0 ? void 0 : (_a_b_c = _object.b.c) === null || _a_b_c === void 0 ? void 0 : _a_b_c.call(_object);
var _a_b_c, _this, _a;
(_a = a) === null || _a === void 0 ? void 0 : (_a_b_c = (_this = _a.b).c) === null || _a_b_c === void 0 ? void 0 : _a_b_c.call(_this);

View File

@ -1,2 +1,2 @@
var _a_b_c_d_e_f_g_h, _object;
(_object = a) === null || _object === void 0 ? void 0 : (_a_b_c_d_e_f_g_h = _object.b.c.d.e.f.g.h) === null || _a_b_c_d_e_f_g_h === void 0 ? void 0 : _a_b_c_d_e_f_g_h.call(_object);
var _a_b_c_d_e_f_g_h, _this, _a;
(_a = a) === null || _a === void 0 ? void 0 : (_a_b_c_d_e_f_g_h = (_this = _a.b.c.d.e.f.g).h) === null || _a_b_c_d_e_f_g_h === void 0 ? void 0 : _a_b_c_d_e_f_g_h.call(_this);

View File

@ -1,2 +1,2 @@
var _data_filter_map, _object, _data_filter;
const result = (_object = data) === null || _object === void 0 ? void 0 : (_data_filter_map = ((_data_filter = _object.filter) === null || _data_filter === void 0 ? void 0 : _data_filter.call(_object, (item)=>Math.random() > 0.5)).map) === null || _data_filter_map === void 0 ? void 0 : _data_filter_map.call(_object, (item)=>JSON.stringify(item));
var _data_filter_map, _this, _data_filter, _this1;
const result = (_this1 = data) === null || _this1 === void 0 ? void 0 : (_data_filter_map = (_this = (_data_filter = _this1.filter) === null || _data_filter === void 0 ? void 0 : _data_filter.call(_this1, (item)=>Math.random() > 0.5)).map) === null || _data_filter_map === void 0 ? void 0 : _data_filter_map.call(_this, (item)=>JSON.stringify(item));

View File

@ -1,2 +1,2 @@
var _d_filter_map, _object, _d_filter;
const r = (_object = d) === null || _object === void 0 ? void 0 : (_d_filter_map = ((_d_filter = _object.filter) === null || _d_filter === void 0 ? void 0 : _d_filter.call(_object, (i)=>Math.random() > 0.5)).map) === null || _d_filter_map === void 0 ? void 0 : _d_filter_map.call(_object, (i)=>JSON.stringify(i));
var _d_filter_map, _this, _d_filter, _this1;
const r = (_this1 = d) === null || _this1 === void 0 ? void 0 : (_d_filter_map = (_this = (_d_filter = _this1.filter) === null || _d_filter === void 0 ? void 0 : _d_filter.call(_this1, (i)=>Math.random() > 0.5)).map) === null || _d_filter_map === void 0 ? void 0 : _d_filter_map.call(_this, (i)=>JSON.stringify(i));

View File

@ -1,4 +1,4 @@
async function foo() {
var _data_foo, _object;
const item = await ((_object = data) === null || _object === void 0 ? void 0 : (_data_foo = _object.foo) === null || _data_foo === void 0 ? void 0 : _data_foo.call(_object));
var _data_foo, _this;
const item = await ((_this = data) === null || _this === void 0 ? void 0 : (_data_foo = _this.foo) === null || _data_foo === void 0 ? void 0 : _data_foo.call(_this));
}

View File

@ -1,2 +1,2 @@
var _a_b_c, _object;
(_object = a) === null || _object === void 0 ? void 0 : (_a_b_c = _object.b.c) === null || _a_b_c === void 0 ? void 0 : _a_b_c.call(_object);
var _a_b_c, _object, _a;
(_a = a) === null || _a === void 0 ? void 0 : (_a_b_c = (_object = _a.b).c) === null || _a_b_c === void 0 ? void 0 : _a_b_c.call(_object);

View File

@ -1,2 +1,2 @@
var _missing_thing;
((_missing_thing = missing) === null || _missing_thing === void 0 ? void 0 : _missing_thing.thing.name) ?? 'unknown';
var _missing;
((_missing = missing) === null || _missing === void 0 ? void 0 : _missing.thing.name) ?? 'unknown';

View File

@ -1,2 +1,2 @@
var _missing_thing;
(_missing_thing = missing) === null || _missing_thing === void 0 ? void 0 : _missing_thing.thing.name;
var _missing;
(_missing = missing) === null || _missing === void 0 ? void 0 : _missing.thing.name;

View File

@ -1,2 +1,2 @@
var _a_b_c, _object, _a_b_c1, _a_b, _object1, _a_b1;
(_object = (_object1 = a) === null || _object1 === void 0 ? void 0 : (_a_b = (_a_b1 = _object1.b) === null || _a_b1 === void 0 ? void 0 : _a_b1.call(_object1)) === null || _a_b === void 0 ? void 0 : _a_b.call(_object1)) === null || _object === void 0 ? void 0 : (_a_b_c = (_a_b_c1 = _object.c) === null || _a_b_c1 === void 0 ? void 0 : _a_b_c1.call(_object)) === null || _a_b_c === void 0 ? void 0 : _a_b_c.call(_object);
var _a_b_c, _this, _a_b_c1, _a_b, _this1, _a_b1;
(_this = (_this1 = a) === null || _this1 === void 0 ? void 0 : (_a_b = (_a_b1 = _this1.b) === null || _a_b1 === void 0 ? void 0 : _a_b1.call(_this1)) === null || _a_b === void 0 ? void 0 : _a_b.call(_this1)) === null || _this === void 0 ? void 0 : (_a_b_c = (_a_b_c1 = _this.c) === null || _a_b_c1 === void 0 ? void 0 : _a_b_c1.call(_this)) === null || _a_b_c === void 0 ? void 0 : _a_b_c.call(_this);

View File

@ -1,2 +1,2 @@
var _test_a_b_c;
(_test_a_b_c = test.a) === null || _test_a_b_c === void 0 ? void 0 : _test_a_b_c.b.c.d;
var _test_a;
(_test_a = test.a) === null || _test_a === void 0 ? void 0 : _test_a.b.c.d;

View File

@ -1,2 +1,2 @@
var _test_a_b;
(_test_a_b = test.a) === null || _test_a_b === void 0 ? void 0 : _test_a_b.b.c;
var _test_a;
(_test_a = test.a) === null || _test_a === void 0 ? void 0 : _test_a.b.c;

View File

@ -1,2 +1,2 @@
var _test_a_b_c_d_e_f_g_h;
(_test_a_b_c_d_e_f_g_h = test.a) === null || _test_a_b_c_d_e_f_g_h === void 0 ? void 0 : _test_a_b_c_d_e_f_g_h.b.c.d.e.f.g.h.i;
var _test_a;
(_test_a = test.a) === null || _test_a === void 0 ? void 0 : _test_a.b.c.d.e.f.g.h.i;

View File

@ -0,0 +1,14 @@
var themeConfig = {
compHome: [
{
compKey: "TaskPage"
},
{
compKey: "DDDDD"
}
]
}
const ret = themeConfig?.compHome.find((item) => {
return item.compKey === "TaskPage";
});
console.log("ret====", ret)

View File

@ -1,5 +1,5 @@
var _o2, _o3_b, _object, _o4_b, _o4_b1;
var _o2, _o3_b, _this, _o4_b, _this1;
o1(o1 ?? 1);
((_o2 = o2) === null || _o2 === void 0 ? void 0 : _o2.b)(o1 ?? 1);
((_object = o3) === null || _object === void 0 ? void 0 : (_o3_b = _object.b) === null || _o3_b === void 0 ? void 0 : _o3_b.call(_object))(o1 ?? 1);
((_o4_b = o4) === null || _o4_b === void 0 ? void 0 : ((_o4_b1 = _o4_b.b) === null || _o4_b1 === void 0 ? void 0 : _o4_b1.call(_o4_b)).c)(o1 ?? 1);
((_this = o3) === null || _this === void 0 ? void 0 : (_o3_b = _this.b) === null || _o3_b === void 0 ? void 0 : _o3_b.call(_this))(o1 ?? 1);
((_this1 = o4) === null || _this1 === void 0 ? void 0 : ((_o4_b = _this1.b) === null || _o4_b === void 0 ? void 0 : _o4_b.call(_this1)).c)(o1 ?? 1);

View File

@ -0,0 +1 @@
obj?.a?.b.c

View File

@ -0,0 +1,2 @@
var _obj_a, _obj;
(_obj_a = (_obj = obj) === null || _obj === void 0 ? void 0 : _obj.a) === null || _obj_a === void 0 ? void 0 : _obj_a.b.c;

View File

@ -0,0 +1 @@
obj?.a?.b?.c()

View File

@ -0,0 +1,2 @@
var _obj_a_b_c, _this, _obj_a, _obj;
(_this = (_obj_a = (_obj = obj) === null || _obj === void 0 ? void 0 : _obj.a) === null || _obj_a === void 0 ? void 0 : _obj_a.b) === null || _this === void 0 ? void 0 : (_obj_a_b_c = _this.c) === null || _obj_a_b_c === void 0 ? void 0 : _obj_a_b_c.call(_this);

View File

@ -0,0 +1 @@
expect(obj?.a?.b?.c()).toBe(2)

View File

@ -0,0 +1,2 @@
var _obj_a_b_c, _this, _obj_a, _obj;
expect((_this = (_obj_a = (_obj = obj) === null || _obj === void 0 ? void 0 : _obj.a) === null || _obj_a === void 0 ? void 0 : _obj_a.b) === null || _this === void 0 ? void 0 : (_obj_a_b_c = _this.c) === null || _obj_a_b_c === void 0 ? void 0 : _obj_a_b_c.call(_this)).toBe(2);

View File

@ -0,0 +1,2 @@
var _a_focus, _object;
(_object = a) === null || _object === void 0 ? void 0 : (_a_focus = _object.focus) === null || _a_focus === void 0 ? void 0 : _a_focus.call(_object);

View File

@ -3152,10 +3152,11 @@ test!(
const tmp = tt?.map((t: any) => t).join((v: any) => v);
",
"
var _tt_map_join, _object, _tt_map;
const tmp = (_object = tt) === null || _object === void 0 ? void 0 : (_tt_map_join = ((_tt_map = \
_object.map) === null || _tt_map === void 0 ? void 0 : _tt_map.call(_object, (t)=>t)).join) \
=== null || _tt_map_join === void 0 ? void 0 : _tt_map_join.call(_object, (v)=>v);
var _tt_map_join, _this, _tt_map, _this1;
const tmp = (_this1 = tt) === null || _this1 === void 0 ? void 0 : (_tt_map_join = (_this = \
(_tt_map = _this1.map) === null || _tt_map === void 0 ? void 0 : _tt_map.call(_this1, \
(t)=>t)).join) === null || _tt_map_join === void 0 ? void 0 : _tt_map_join.call(_this, \
(v)=>v);
"
);