Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fixes and Improvements for Emscripten WASM REPL #136251

Closed
Labels
@adqm

Description

@adqm

Feature or enhancement

Proposal:

I recently ran into some issues with building and using the demo WASM REPL inTools/wasm/emscripten/web_example/ using the instructions fromthis page, so I'm proposing some fixes and changes here, specifically:

  • Fixes:
    • ExportingHEAPU32 at build time so thatpython.worker.mjs has access to it to determine the version number
    • Properly closing a<script> tag inpython.html so thatxterm.js loads properly
  • New Features:
    • Augmenting the REPL implementation to support arrow keys for navigation (including accessing history)
    • Resetting things after a process is stopped so we can cleanly restart multiple times
    • Replacing the plaintextarea element with a nicer code editor (Ace)

I made these changes while putting together a web demo for adifferent feature proposal and figured I'd share them in case they were of interest. I'll put in a PR shortly.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp