[TS] Execute Symbol values without treating them as references
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 55/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- kotlin, nodejs, typescript
- Domínio
- devtools, testing-qa
Direção de pesquisa
Start with the sort mapping in usvm-ts/src/main/kotlin/org/usvm/machine/TsContext.kt and the typeof handling in usvm-ts/src/main/kotlin/org/usvm/machine/expr/TsExprResolver.kt. Add a focused regression for the provided Symbol example after the required Symbol EtsIR is available, then compare the supported result with a concrete Node.js replay. Done means Symbol behavior is represented explicitly, while unsupported operands or environments remain marked as approximations.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Current state (2026-10-14)
Audited against usvm main at 19866c959d.
JacoDB represents Symbol types and intrinsic Symbol.iterator identity for native iteration. USVM still has no general Symbol input/runtime-kind/equality/coercion model.
Remaining acceptance boundary
Implement Symbol value/input identity, typeof symbol and numeric TypeError behavior without conflating symbols with references or strings. Keep intrinsic iterator identity as an existing narrow capability.
Original report and acceptance context, retained for traceability
Problem
The symbolic machine has no Symbol value sort or runtime-kind branch; Symbol-typed values fall outside its type-to-sort mapping.
Minimal TypeScript example
export function kind(value: symbol): string {
return typeof value;
}
Expected behavior
For a Symbol input, kind returns "symbol". Symbol equality uses identity and numeric coercion raises TypeError; do not collapse symbols into string/object/unknown reference semantics. Requires Symbol EtsIR from UnitTestBot/jacodb#379.
Current source evidence
Checked against USVM main 53dce8f3bca2713642c783ba8308a6a360a9e516. This exact snippet is a proposed regression from source audit; it has not yet been run as a new end-to-end test. #368 audits the existing call approximations but does not implement these individual fixes.
Acceptance criteria
- A focused test checks the symbolic outcome without reporting an approximation as exact semantics.
- The supported case agrees with concrete TypeScript/Node.js replay.
- Unsupported operand or environment cases remain explicit.
- Linguagem predominante
- Kotlin
- Estrelas
- 33
- Forks
- 27
- Merge médio
- 3d 21h
- PRs com merge (30d)
- 88
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de UnitTestBot/usvm
-
[TS PBT] Save campaign-file artifacts before stdout publicationTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
UnitTestBot/usvm#612 ·
Mantenedores costumam responder em até 1 dia
-
[TS PBT] Preserve class verification after expected PBT budget expiryTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 18/100
UnitTestBot/usvm#618 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 25/100
UnitTestBot/usvm#613 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 43/100
UnitTestBot/usvm#604 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
UnitTestBot/usvm#592 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de UnitTestBot/usvm
Issues semelhantes
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
beppe2880/opencode-mobile#60 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
auth0/Auth0.Android#1101 ·
Mantenedores costumam responder em até 1 dia
-
LiquidGlass / LiquidGlassContainer (iOS): padded content measured at the outer width and overflows by the paddingTalvez já em andamento @aleclarson assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
NativeScript/NativeScript#11561 ·
Mantenedores costumam responder em até 1 dia
-
Imported configuration's @Bean methods record the configuration class instead of the return typeAbertain:spring-core
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
explyt/spring-plugin#787 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
IacobIonut01/ReFra#1335 ·
Mantenedores costumam responder em até 4 dias