Both engines accept primitive results from an async iterator next method
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 69/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- csharp, typescript
- Área
- compilers
Línea de trabajo
Start by tracing async iterator handling in both the interpreter and the --compile --verify path; the issue does not name specific files or tests. Compare how each path processes the value returned by next() with Node’s TypeError behavior, then add coverage for the supplied reproduction. Done means both SharpTS execution modes reject the primitive result with a TypeError.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
const invalid = {
[Symbol.asyncIterator]() {
return { next() { return Promise.resolve(1); } };
}
};
async function run() {
try {
for await (const value of invalid) {
console.log("body", value);
break;
}
} catch (error) {
console.log("caught", error.name);
}
}
run();
Node prints caught TypeError. SharpTS with --no-tsconfig --noLib prints body null in the interpreter and body undefined in saved output built with --compile --verify. An async iterator step must resolve to an object before the loop reads its properties. This reproduces in an ordinary async function independently of #3575.
- Lenguaje dominante
- C#
- Estrellas
- 156
- Forks
- 4
- Merge medio
- 15 h 35 min
- PR fusionados (30 d)
- 43
Preparar el entorno
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de nickna/SharpTS
-
Dificultad 3/5 1-2 días Aptitud para principiantes 57/100
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
Los mantenedores suelen responder en 1 día
-
Compiled strict async function declarations lack the throwing callee accessorPosiblemente ocupada @nickna la tomó hoy. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 1-2 días Aptitud para principiantes 56/100
Los mantenedores suelen responder en 1 día
Todos los issues de nickna/SharpTS
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
dotnet/wpf#12108 · 3 reacciones ·
Los mantenedores suelen responder en 1 día
-
:watch: Not Triaged dotnet/svc
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
area:build type:chore
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
csharp good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
python triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
microsoft/semantic-kernel#14753 ·
Los mantenedores suelen responder en 5 días