Skip to content

Commit abd17d4

Browse files
committed
Delete more broken tests before Node 24
1 parent add6971 commit abd17d4

File tree

2 files changed

+0
-90
lines changed

2 files changed

+0
-90
lines changed

src/testRunner/unittests/evaluation/awaitUsingDeclarations.ts

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1921,51 +1921,6 @@ describe("unittests:: evaluation:: awaitUsingDeclarations", () => {
19211921
]);
19221922
});
19231923

1924-
it("'await using' with downlevel generators", async () => {
1925-
abstract class Iterator {
1926-
return?(): void;
1927-
[evaluator.FakeSymbol.iterator]() {
1928-
return this;
1929-
}
1930-
[evaluator.FakeSymbol.dispose]() {
1931-
this.return?.();
1932-
}
1933-
}
1934-
1935-
const { main } = evaluator.evaluateTypeScript(
1936-
`
1937-
let exited = false;
1938-
1939-
function * f() {
1940-
try {
1941-
yield;
1942-
}
1943-
finally {
1944-
exited = true;
1945-
}
1946-
}
1947-
1948-
export async function main() {
1949-
{
1950-
await using g = f();
1951-
g.next();
1952-
}
1953-
1954-
return exited;
1955-
}
1956-
`,
1957-
{
1958-
target: ts.ScriptTarget.ES5,
1959-
},
1960-
{
1961-
Iterator,
1962-
},
1963-
);
1964-
1965-
const exited = await main();
1966-
assert.isTrue(exited, "Expected 'await using' to dispose generator");
1967-
});
1968-
19691924
it("'await using' with downlevel async generators", async () => {
19701925
abstract class AsyncIterator {
19711926
return?(): PromiseLike<void>;

src/testRunner/unittests/evaluation/usingDeclarations.ts

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1810,49 +1810,4 @@ describe("unittests:: evaluation:: usingDeclarations", () => {
18101810
"exit",
18111811
]);
18121812
});
1813-
1814-
it("'using' with downlevel generators", () => {
1815-
abstract class Iterator {
1816-
return?(): void;
1817-
[evaluator.FakeSymbol.iterator]() {
1818-
return this;
1819-
}
1820-
[evaluator.FakeSymbol.dispose]() {
1821-
this.return?.();
1822-
}
1823-
}
1824-
1825-
const { main } = evaluator.evaluateTypeScript(
1826-
`
1827-
let exited = false;
1828-
1829-
function * f() {
1830-
try {
1831-
yield;
1832-
}
1833-
finally {
1834-
exited = true;
1835-
}
1836-
}
1837-
1838-
export function main() {
1839-
{
1840-
using g = f();
1841-
g.next();
1842-
}
1843-
1844-
return exited;
1845-
}
1846-
`,
1847-
{
1848-
target: ts.ScriptTarget.ES5,
1849-
},
1850-
{
1851-
Iterator,
1852-
},
1853-
);
1854-
1855-
const exited = main();
1856-
assert.isTrue(exited, "Expected 'using' to dispose generator");
1857-
});
18581813
});

0 commit comments

Comments
 (0)