Evaluate a synchronous write API (no `await`)

オープン
#3 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
javascript, python, web-dev

調査の方向性

Start with Page._dom in extension/python/pymonkey_runtime.py and compare Pyodide run_sync (JSPI) with keeping await. Document the chosen option's minimum Chrome version and update the README and examples to match. If sync is adopted, verify all ten write methods and existing await scripts; otherwise, confirm an un-awaited write call produces a visible warning.

索引モデルが issue の本文から書いたものです。

説明

core user story

User story

As a Python user new to async, I want to write page.click("button") without await, so that my script doesn't silently do nothing when I forget it.

Why

Writes are async today. Calling page.click(...) without await creates a coroutine that never runs, and no error is shown. This will be the most common mistake.

Acceptance criteria

  • Written comparison of options: Pyodide run_sync (JSPI) vs keeping await
  • Minimum Chrome version for the chosen option is documented
  • If sync is adopted: all ten write methods work without await, and existing await scripts still work or fail with a clear message
  • If sync is not adopted: an un-awaited write call produces a visible warning in the output
  • README and examples match the decision

Notes

Relevant code: Page._dom in extension/python/pymonkey_runtime.py.


Generated by Claude Code

主要言語
JavaScript
スター
1
フォーク
1
平均マージ
1分
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Ohr-Co/PyMonkey のほかの issue

Ohr-Co/PyMonkey の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。