]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-84461: Improve WebAssembly in-browser demo (#91879)
authorTrey Hunner <trey@treyhunner.com>
Fri, 1 Jul 2022 09:52:58 +0000 (02:52 -0700)
committerGitHub <noreply@github.com>
Fri, 1 Jul 2022 09:52:58 +0000 (11:52 +0200)
commita8e333d79aa639417e496181bcbad2cb801a7a56
treed136e1ebf4dc07e41c52147b6cb1fe9a7bfd4a47
parent5f2c91a343fb20f8c2fc78cbb3e68234bcba40a8
gh-84461: Improve WebAssembly in-browser demo (#91879)

* Buffer standard input line-by-line

* Add non-root .editorconfig for JS & HTML indent

* Add support for clearing REPL with CTRL+L

* Support unicode in stdout and stderr

* Remove \r\n normalization

* Note that local .editorconfig file extends root

* Only normalize lone \r characters (convert to \n)

* Skip non-printable characters in buffered input

* Fix Safari bug (regex lookbehind not supported)

Co-authored-by: Christian Heimes <christian@python.org>
Tools/wasm/.editorconfig [new file with mode: 0644]
Tools/wasm/python.html
Tools/wasm/python.worker.js