mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
No longer specially recognize underscore and update baselines
This commit is contained in:
@@ -558,7 +558,7 @@ namespace ts.codefix {
|
||||
name = getMapEntryIfExists(funcNode);
|
||||
}
|
||||
|
||||
if (!name || name.identifier === undefined || name.identifier.text === "_" || name.identifier.text === "undefined") {
|
||||
if (!name || name.identifier === undefined || name.identifier.text === "undefined") {
|
||||
return { identifier: createIdentifier(""), types, numberOfAssignmentsOriginal };
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -6,6 +6,6 @@ function /*[#|*/f/*|]*/(): Promise<void> {
|
||||
// ==ASYNC FUNCTION::Convert to async function==
|
||||
|
||||
async function f(): Promise<void> {
|
||||
await fetch('https://typescriptlang.org');
|
||||
const _ = await fetch('https://typescriptlang.org');
|
||||
console.log("done");
|
||||
}
|
||||
@@ -19,7 +19,7 @@ function /*[#|*/f/*|]*/() {
|
||||
|
||||
async function f() {
|
||||
var var1: Response, var2;
|
||||
await fetch('https://typescriptlang.org');
|
||||
const _ = await fetch('https://typescriptlang.org');
|
||||
const res = await Promise.resolve();
|
||||
var2 = "test";
|
||||
const res_1 = await fetch("https://microsoft.com");
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ function res(result) {
|
||||
|
||||
async function f() {
|
||||
const result = await fetch('https://typescriptlang.org');
|
||||
await res(result);
|
||||
const _ = await res(result);
|
||||
return console.log("done");
|
||||
}
|
||||
function res(result) {
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ function res(result) {
|
||||
|
||||
async function f() {
|
||||
const result = await fetch('https://typescriptlang.org');
|
||||
await res(result);
|
||||
const _ = await res(result);
|
||||
return console.log("done");
|
||||
}
|
||||
function res(result) {
|
||||
|
||||
Reference in New Issue
Block a user