Importing psychoscript throws RangeError in Safari (WebKit/JavaScriptCore)
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- javascript, playwright
- 領域
- testing-qa, web-dev
調査の方向性
Start with dist/runtime/limits.js, where the oversized BigInt shift is calculated at module load. Reproduce with await import("psychoscript") in Playwright's WebKit build and compare the boundary expression with Chromium and Node. Done means the package imports without a RangeError in WebKit while retaining the intended runtime limit and existing behavior elsewhere.
索引モデルが issue の本文から書いたものです。
説明
Environment
- psychoscript 0.3.0
- Fails: WebKit 27.2 (Safari 27.2 engine, via Playwright's WebKit build)
- Works: Chromium 158, Node 24.22
What happens
Importing psychoscript in Safari (or any JavaScriptCore runtime) throws at module load:
RangeError: Out of memory: BigInt generated from this operation is too big
at module code@.../psychoscript/dist/runtime/limits.js:15:21
so psychoscript can't be used in Safari at all, including iOS browsers.
Minimal repro
Any page that does:
await import("psychoscript");
The same RangeError comes from this expression in Safari's console:
1n << BigInt(1 << 20) // RangeError in WebKit 27.2; 1048577 bits in Chromium 158 and Node 24
1n << BigInt((1 << 20) - 1) // works everywhere (1048576 bits)
Expected
psychoscript imports in Safari as it does in Chrome and Node.
- 主要言語
- Rust
- スター
- 470
- フォーク
- 11
- 平均マージ
- 4時間 10分
- マージ済み PR(30日)
- 89
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
anomalyco/psychoscript のほかの issue
-
fix(rust): large BigInts bypass Limits::max_heap_bytes対応中かも @brxs が 2 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
anomalyco/psychoscript#113 ·
メンテナーはふだん 1 日以内に返信
-
fix(rust): Returned::Block deadlocks single-threaded async executors under execute_async対応中かも @brxs が 2 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
anomalyco/psychoscript#110 ·
メンテナーはふだん 1 日以内に返信
-
fix(rust): duplicate fresh strings bypass Limits::max_heap_bytes対応中かも @brxs が 2 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
anomalyco/psychoscript#109 ·
メンテナーはふだん 1 日以内に返信
-
Runs fail with `setImmediate is not defined` in browsers and Convex's runtime once a program runs longer than ~1 ms対応中かも @fengqiaoqu が 2 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
anomalyco/psychoscript#82 ·
メンテナーはふだん 1 日以内に返信
anomalyco/psychoscript の issue をすべて見る
似ている issue
-
bug good first issue web
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
triage: not actionable
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
oxc-project/oxc#30518 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area: panel
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
frandev94/shattered-islands#98 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信