Clarification / RFC: BigInt(Uint8Array) lowering parity and documentation of runtime-optional storage rules
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 24/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Necesita aclaración
- Estado de actividad
- Activo
- Stack tecnológico
- node.js, typescript
- Área
- compilers
Línea de trabajo
Read the investigations in #1644 and #1645, then inspect lowerBigIntConstructorValue and the SC2020/SC1090 diagnostic paths mentioned in the issue. Decide whether to add bytes runtime dispatch, refine the existing diagnostic envelope or introduce a dedicated code, and where to document runtime optional callee promotion. Done means maintainers resolve these policy questions and identify the resulting implementation and documentation scope.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Context
Following the investigation in #1644 (Record index-signature read parameter widening) and #1645 (SC2020 diagnostic accuracy), three design and policy questions arose regarding lowering parity and documentation.
Questions for Maintainers
-
Parity for
BigInt(Uint8Array)/BigInt(bytes):- In Node.js,
BigInt(new Uint8Array([1])) === 1nandBigInt(new Uint8Array([])) === 0nvia standard JSToPrimitivestring coercion (multi-element typed arrays throwSyntaxError). - Scriptc currently accepts
{bigint, string, f64, bool, unit}inlowerBigIntConstructorValue, but omitsbytes/Uint8Array. - Is extending
lowerBigIntConstructorValueto supportbytesvia runtime dispatch desirable for Node parity?
- In Node.js,
-
Diagnostic code policy vs message enhancement:
- When an expression inside a type guard cannot be lowered because of runtime-optional storage widening, should this eventually receive a dedicated diagnostic code (requiring a surface manifest regeneration), or is refining the existing SC2020/SC1090 message and
hintenvelope preferred?
- When an expression inside a type guard cannot be lowered because of runtime-optional storage widening, should this eventually receive a dedicated diagnostic code (requiring a surface manifest regeneration), or is refining the existing SC2020/SC1090 message and
-
Documentation of runtime-optional callee promotion:
- When indexed reads widen callee parameters to ensure storage safety across call sites, should this rule be explicitly documented under
docs/content/limitations/ortypes-and-class-definitions/unions.mdxto set expectations for library authors targeting static compilation?
- When indexed reads widen callee parameters to ensure storage safety across call sites, should this rule be explicitly documented under
- Lenguaje dominante
- TypeScript
- Estrellas
- 6.7k
- Forks
- 229
- Merge medio
- 14 h 29 min
- PR fusionados (30 d)
- 787
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
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 vercel-labs/scriptc
-
Dificultad 4/5 3-5 días Aptitud para principiantes 58/100
vercel-labs/scriptc#4865 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 58/100
vercel-labs/scriptc#4864 ·
Los mantenedores suelen responder en 1 día
-
Windows ARM64 as a cross-compile targetPosiblemente ocupada @hum-n la tomó hace 1 día. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
vercel-labs/scriptc#4858 ·
Los mantenedores suelen responder en 1 día
-
post-merge-bisect-unresolved
Dificultad 3/5 1-2 días Aptitud para principiantes 43/100
vercel-labs/scriptc#4791 ·
Los mantenedores suelen responder en 1 día
-
post-merge-bisect-unconfirmed
Dificultad 5/5 Más de una semana Aptitud para principiantes 12/100
vercel-labs/scriptc#4755 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de vercel-labs/scriptc
Issues similares
-
bug data-types
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
ClickHouse/clickhouse-js#1293 ·
Los mantenedores suelen responder en 1 día
-
area: middleware enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
agent/quality testing
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 92/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
juspay/agent-distro#203 ·
Los mantenedores suelen responder en 1 día