Typed WeakMap receivers ignore own get, setPrototypeOf and a patched WeakMap.prototype.get
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
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
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di PerryTS/perry
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
Implement Iterator.zip and Iterator.zipKeyedForse già presa @TheHypnoo l’ha presa oggi. Apertaenhancement
PerryTS/perry#13497 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Gap suite on macOS arm64: ~155 environment/load failures vs the snapshotForse già presa @TheHypnoo l’ha presa oggi. Apertatooling
PerryTS/perry#13496 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
gc_runtime_root_holders.py fails on main: PASS1_MARKED and INTERN_TABLE pins need re-auditForse già presa @TheHypnoo l’ha presa oggi. Apertatooling
PerryTS/perry#13495 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
check_file_size.sh fails on main: gc/types.rs is 2003 linesForse già presa @TheHypnoo l’ha presa oggi. Apertatooling
PerryTS/perry#13494 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di PerryTS/perry
Issue simili
-
Add a just recipe that runs the workflow linters locallyForse già presa @sgamelin l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
good first issue security
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
-
Status bar: a progress line that keeps the same text (import at 0%) ages out after 8 s and blinksApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
transit-audio/transit#216 ·
-
area: effects devices enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
suhina-daw/suhina-daw#1060 ·
I maintainer di solito rispondono entro 1 giorno