Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Typed WeakMap receivers ignore own get, setPrototypeOf and a patched WeakMap.prototype.get

Aperta
#12,669 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
18/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript, rust, typescript
Ambito
compilers

Direzione di ricerca

The typed WeakMap dispatch lives in Perry's codegen, so start by finding where it emits direct calls to the builtin WeakMap get and has, and where the js_bm_* entries perform their pristine-prototype and plain-receiver checks. Reproduce by compiling a small TypeScript file that adds an own get, relinks the receiver with Object.setPrototypeOf, or patches WeakMap.prototype.get, and compare against node. Done means those cases fall back to the generic path and the Promise has() case throws a TypeError like node.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug parity

Found by the step 5 phase 2 lane; main has it too. Codegen's typed WeakMap dispatch calls the builtin directly even when the receiver has an own get, was relinked with Object.setPrototypeOf, or WeakMap.prototype.get was replaced. Related: has() called on a Promise through an untyped receiver doesn't throw (node throws TypeError). The typed dispatch needs the same pristine-prototype and plain-receiver proof as the new js_bm_* entries.

Lingua principale
Rust
Stelle
4.9k
Fork
166
Merge medio
2h 19m
PR unite (30g)
914

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PerryTS/perry

Tutte le issue di PerryTS/perry

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.