Commit Graph

44 Commits

Author SHA1 Message Date
Michael Droettboom 2d0b9ee23a Use pathlib for path manipulations 2018-08-03 17:11:38 -04:00
Michael Droettboom 779da3cd4e
Merge pull request #96 from mdboom/fix93-string-decoding
Fix #93 by avoiding use of TextDecoder
2018-07-30 15:37:20 -04:00
Michael Droettboom a07b6f3913 Fix #93 by avoiding use of TextDecoder
Any use of TextDecoder on a part of the Wasm HEAP seems to cause crashes
when using WebAssembly.instantiate later on (in Chrome).

The fix is to:

- Avoid use of TextDecoder in emscripten-generated code by setting
  -s TEXTDECODER=0
- Do the Python-to-JS string conversion a different way:

  - Handle the native format of a Python Unicode string (which is either UCS1,
    UCS 2 or UCS 4) directly.  This has the added advantage of being
    computationally simpler than encoding/decoding to/from UTF8.
2018-07-26 16:50:12 -04:00
Michael Droettboom 5c5bf6adf3 Obsoletes #22. Include all codecs, since removing tests imp. size. 2018-07-25 07:27:15 -04:00
Michael Droettboom 144e6f04bc LINT 2018-07-24 13:02:49 -04:00
Michael Droettboom 876c9a5bc0 Turn off full Python tests 2018-07-24 12:59:03 -04:00
Michael Droettboom 9d74363275 Turn on core Python tests 2018-07-23 12:43:08 -04:00
Michael Droettboom 1aa2fc1265 LINT 2018-07-23 11:39:10 -04:00
Michael Droettboom 59bf78f93c Decrease Python call stack size so it doesn't exceed JS call stack 2018-07-23 11:38:51 -04:00
Michael Droettboom 565548c9fd LINT 2018-07-17 12:46:02 -04:00
Michael Droettboom 66e811dac1 Don't copy data if already on the WASM heap 2018-07-17 10:38:59 -04:00
Michael Droettboom b5e9630f0d
Merge pull request #70 from iodide-project/chromedriver
Add testing with Chrome
2018-07-11 10:50:00 -04:00
Michael Droettboom 075ffca0e2 Handle catching Javascript exceptions in a unified way 2018-07-09 20:59:03 -04:00
Michael Droettboom aa03438131 Proxy compatibility for Chrome 2018-07-09 17:15:10 -04:00
Michael Droettboom 670473f29b Fix webserver 2018-07-09 17:15:04 -04:00
Michael Droettboom 5d29723374 Convert typedarrays to/from buffers/memoryviews 2018-06-29 16:18:29 -04:00
Michael Droettboom 55aedee7b3
Merge pull request #63 from iodide-project/js2python-typed-array
Fix the passing of Javascript typed arrays to Python
2018-06-27 11:45:18 -04:00
Michael Droettboom 9b5024613b Fix the passing of Javascript typed arrays to Python 2018-06-27 10:57:53 -04:00
Michael Droettboom 6b8f5e2727 Add a lot more jsproxy functionality 2018-06-25 16:55:35 -04:00
Michael Droettboom c00b9bb6b8 Fix expected error message 2018-06-25 09:09:16 -04:00
Michael Droettboom a4154d9669 Add destroy method to remove references to Python objects 2018-06-24 12:29:46 -04:00
Michael Droettboom e2e8b29739 Linting 2018-06-24 12:23:30 -04:00
Michael Droettboom d9b74e0571 Don't run core Python tests on CircleCI 2018-06-24 12:13:24 -04:00
Michael Droettboom b8b9519575 More work trying to get linting working again 2018-06-15 12:30:22 -04:00
Michael Droettboom af3a0a13e4 Move CPython tests to their own package 2018-06-15 12:21:12 -04:00
Michael Droettboom 2bc63bcaea Fix python2js test 2018-06-05 06:16:32 -04:00
Michael Droettboom 7d19fcd6bb Fix bugs found from examples 2018-06-04 20:37:40 -04:00
Michael Droettboom 0ef811c94d Fix core CPython tests 2018-05-30 13:59:09 -04:00
Michael Droettboom 9579aa99bc Working state 2018-05-30 13:49:49 -04:00
Michael Droettboom 527a2e79eb Fix jsproxy 2018-05-10 10:37:46 -04:00
Michael Droettboom 47b2d51522 Remove obsolete code 2018-05-09 15:00:38 -04:00
Michael Droettboom 3a625fad3d Only skip tests if on Travis 2018-05-09 15:00:21 -04:00
Michael Droettboom 1e45ffe957 Improve py_proxy test 2018-05-09 14:59:55 -04:00
Michael Droettboom aa433aaf81 Add first version of pyodide.py 2018-05-09 14:59:35 -04:00
Michael Droettboom d385b7c9f1 Use Proxy to make calling Python objects from JS more natural 2018-05-07 08:27:21 -04:00
Michael Droettboom f88ec06642 Fix tests for new modular packaging 2018-05-04 13:09:32 -04:00
Michael Droettboom f1e0cc9085 Fix "from js import foo" 2018-04-26 11:43:48 -04:00
Michael Droettboom 34f297a679 Python < 3.5 compatibility 2018-04-20 09:53:09 -04:00
Michael Droettboom ea3006aa79 Run fewer tests 2018-04-19 14:01:05 -04:00
Michael Droettboom 8b1c538ef2 Mark broken tests so the test suite runs 2018-04-11 15:26:19 -04:00
Michael Droettboom e382ada4ce More progress on running CPython tests 2018-04-09 15:53:33 -04:00
Michael Droettboom 6cce6d654d Basics for testing CPython 2018-04-09 10:39:52 -04:00
Michael Droettboom dbd5d3406d Fix test 2018-04-02 13:54:25 -04:00
Michael Droettboom 2ad135ef06 Add testing 2018-03-30 10:51:13 -04:00