Two public SystemHost types: the core one is always UTC, the host crate's uses the system time zone
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 52/100
Línea de trabajo
Start by reading core/src/host.rs around SystemHost and adapters/native/src/system.rs to compare the two public types, then check how Runtime::new() and Runtime::new_with_host_services expose them. The issue suggests renaming the core type while keeping the host crate's SystemHost; trace the public exports and update affected references. Done means the types are unambiguous and the documented host behavior remains accurate.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Two public types are named SystemHost and behave differently:
| Path | Clock | Time zone |
|---|---|---|
quickjs_oxide::engine::api::core::SystemHost (re-export of oxide_core::host::SystemHost, core/src/host.rs:84) |
system | always UTC |
quickjs_oxide_host::SystemHost (adapters/native/src/system.rs:19) |
system | TZ / /etc/localtime via tz-rs |
Runtime::new() uses the first; the README and the docs use the second with Runtime::new_with_host_services. A use quickjs_oxide::engine::api::core::*; plus use quickjs_oxide_host::SystemHost; is a name clash, and importing the wrong one silently gives UTC dates.
Suggestion: rename the core one to what it is (e.g. UtcHost / DefaultHost), keeping SystemHost only in quickjs-oxide-host.
- Lenguaje dominante
- Rust
- Estrellas
- 61
- Forks
- 2
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Aún no hemos revisado los archivos de configuración de este proyecto. Empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 pocket-stack/quickjs-oxide
-
Dificultad 4/5 3-5 días Aptitud para principiantes 44/100
pocket-stack/quickjs-oxide#192 · 3 comentarios ·
-
performance.now() bypasses Host and uses std::time::Instant (unsupported on wasm32-unknown-unknown)Abiertobug
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
pocket-stack/quickjs-oxide#165 · 1 comentario ·
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 56/100
pocket-stack/quickjs-oxide#163 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
pocket-stack/quickjs-oxide#158 · 1 comentario ·
-
Execution slow paths: inline-cache misses (Gameboy), typed-array access (zlib), array stores (Sieve)Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
pocket-stack/quickjs-oxide#157 ·
Todos los issues de pocket-stack/quickjs-oxide
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Wait for the IDS correction dialog to settle in the stale-audit testPosiblemente ocupada @louistrue la tomó hoy. Abiertoready
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
dutchman-cad/dutchman#874 ·
Los mantenedores suelen responder en 1 día
-
The address-wrap test for a path that fits a line fails on a machine without Inter installedAbiertobug good first issue ready
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
MartinPTielemans/ilo#3840 ·
Los mantenedores suelen responder en 1 día
-
bug file-compat priority: medium
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
storytold/wordcraft#7248 · 1 comentario ·
Los mantenedores suelen responder en 4 días