performance.now() bypasses Host and uses std::time::Instant (unsupported on wasm32-unknown-unknown)
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 52/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- rust, wasm
- 領域
- backend, embedded-iot
調査の方向性
Start with core/src/builtins/global.rs:11 and follow the call to agent::monotonic_ms in core/src/builtins/agent.rs:75; then inspect the Host trait, Host::now_ms, and WebHost. Add a host-provided monotonic clock with a native default and browser implementation. Done when performance.now() uses that clock, native behavior remains available, and the wasm browser path no longer calls unsupported Instant::now().
索引モデルが issue の本文から書いたものです。
説明
performance.now(), installed by Context::install_qjs_helpers, reads std::time::Instant directly (core/src/builtins/global.rs:11 -> agent::monotonic_ms, core/src/builtins/agent.rs:75) instead of going through the Host.
Consequences:
- An embedder cannot control or fake the monotonic clock the way
Host::now_mscontrolsDate.now()(reproducible runs, tests). std::time::Instant::now()is unsupported onwasm32-unknown-unknown(std panics, and thewebprofile ispanic = "abort"), so a browser embedder that installs the qjs helpers would abort on the firstperformance.now()call. Not exercised today because the web binding does not install the helpers.
Suggestion: add a Host method for the monotonic clock (default: Instant on native) and implement it in WebHost with the browser's performance.now().
- 主要言語
- Rust
- スター
- 61
- フォーク
- 2
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
pocket-stack/quickjs-oxide のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 44/100
pocket-stack/quickjs-oxide#192 · コメント 3 件 ·
-
Two public SystemHost types: the core one is always UTC, the host crate's uses the system time zoneオープンenhancement
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
pocket-stack/quickjs-oxide#164 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 56/100
pocket-stack/quickjs-oxide#163 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
pocket-stack/quickjs-oxide#158 · コメント 1 件 ·
-
Execution slow paths: inline-cache misses (Gameboy), typed-array access (zlib), array stores (Sieve)オープン
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
pocket-stack/quickjs-oxide#157 ·
pocket-stack/quickjs-oxide の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
Wait for the IDS correction dialog to settle in the stale-audit test対応中かも @louistrue が今日担当しました。 オープンready
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
dutchman-cad/dutchman#874 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue ready
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
MartinPTielemans/ilo#3840 ·
メンテナーはふだん 1 日以内に返信
-
bug file-compat priority: medium
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
storytold/wordcraft#7248 · コメント 1 件 ·
メンテナーはふだん 4 日以内に返信