Commit Graph

104 Commits

Author SHA1 Message Date
Windel Bouwman
cb1b9d368f Merge pull request #602 from coolreader18/prep-wasm-npm
Prepare the wasm crate for publishing on npm
2019-03-05 07:25:10 +01:00
Joey
006e975bc5 Update wasm/lib/README.md
Co-Authored-By: coolreader18 <33094578+coolreader18@users.noreply.github.com>
2019-03-04 17:16:02 -06:00
coolreader18
55cc653d9b Prepare the wasm crate for publishing on npm 2019-03-04 16:50:30 -06:00
Joey Hain
3478251d40 Merge remote-tracking branch 'origin/master' into joey/fun-with-functions
Conflicts:
      vm/src/lib.rs
      vm/src/pyobject.rs
      wasm/lib/src/vm_class.rs
2019-03-02 04:04:22 -08:00
Windel Bouwman
c8afeae0f7 Merge pull request #577 from RustPython/kill_scope_variant
Remove Scope variant from PyObject.
2019-03-02 10:30:41 +01:00
coolreader18
5f8fb896d7 Fix lints in rustpython_wasm 2019-03-01 20:22:14 -06:00
Adam Kelly
9d6e9ac889 Move Scope from pyobject to frame. 2019-03-01 20:49:17 +00:00
Adam Kelly
c2e2441388 Remove Scope variant from PyObject. 2019-03-01 20:47:09 +00:00
Joey Hain
e2e3353441 Add factory impl for boxed fn and remove extra constructor 2019-03-01 11:39:52 -08:00
Windel Bouwman
387c21f285 Merge pull request #570 from coolreader18/wasm-vm-inject_module
Add an `injectModule` method to WASMVirtualMachine
2019-03-01 17:16:22 +01:00
coolreader18
500f48621d Merge branch 'master' into wasm-promise-class 2019-02-28 07:29:17 -06:00
Windel Bouwman
cca19cf71f Merge pull request #569 from coolreader18/wasm-alert
Add alert, confirm, and prompt to the browser module
2019-02-28 07:22:30 +01:00
coolreader18
f6196126e4 Add an injectModule method to WASMVM 2019-02-27 19:25:06 -06:00
coolreader18
ea93fb871c Add alert, confirm, and prompt to the browser module 2019-02-27 17:38:24 -06:00
coolreader18
e3db472f37 Fix merge conflicts 2019-02-27 12:44:42 -06:00
Windel Bouwman
9404c7c657 Merge pull request #548 from rickyhan/new_vm_fns
Move set_item to DictProtocol
2019-02-27 09:40:12 +01:00
coolreader18
c4513a176b Proper error handling for int to animationFrame id 2019-02-26 22:20:28 -06:00
coolreader18
b82e829c1f newline 2019-02-26 21:27:30 -06:00
coolreader18
717392c3c5 Scroll to the bottom of the demo when it gets updated 2019-02-26 21:21:43 -06:00
coolreader18
1d193e7fc7 Convert between JS Promises and PyPromises 2019-02-26 20:37:59 -06:00
coolreader18
ba1c5d78aa Add a Promise class to the browser module 2019-02-26 20:28:25 -06:00
ricky han
30145ec6e2 cargo fmt 2019-02-26 17:47:03 -05:00
ricky han
0a2aa1e64b fix compile 2019-02-26 17:39:56 -05:00
Windel Bouwman
2fc53a9440 Merge pull request #539 from coolreader18/wasm-browser-req_anim_frame
[WASM] Add requestAnimationFrame to browser module
2019-02-26 19:28:18 +01:00
Windel Bouwman
82e2ba19ab Merge pull request #550 from coolreader18/remove-console_error-crate
Remove the console_error_panic_hook crate from Cargo.toml
2019-02-26 17:23:55 +01:00
Windel Bouwman
53f54e4d76 Merge pull request #546 from rickyhan/master
Use closure instead of function pointer for StdlibInitFunc
2019-02-26 17:21:59 +01:00
Joey Hain
b8eb4c38e8 Fix wasm 2019-02-25 23:10:06 -08:00
Ricky Han
138de0dfcd fix build error 2019-02-26 01:15:41 -05:00
Ricky Han
baf3fe4bec fix build error 2019-02-26 01:15:09 -05:00
coolreader18
d399faa425 Remove the console_error_panic_hook crate from Cargo.toml 2019-02-25 20:50:53 -06:00
Ricky Han
6f85a44f7c cargo fmt 2019-02-25 16:35:19 -05:00
Ricky Han
6752f67292 cargo fmt 2019-02-25 16:34:55 -05:00
Ricky Han
943ded07bd fix wasm 2019-02-25 15:23:40 -05:00
coolreader18
5dd2de0b1e Add requestAnimationFrame to browser module 2019-02-24 21:13:51 -06:00
coolreader18
9a7bb315e2 Merge branch 'master' into wasm-better-panic 2019-02-24 09:09:09 -06:00
coolreader18
ff66bb602e Follow clippy's advice 2019-02-23 15:05:52 -06:00
coolreader18
878c131af4 Make panic errors available and display them nicely for the demo 2019-02-23 14:52:02 -06:00
coolreader18
fd184a1e68 Add a WASM browser module with fetch() available 2019-02-23 13:58:19 -06:00
coolreader18
5a472e46aa Merge branch 'master' into wasm-fetch-builtin 2019-02-23 12:28:17 -06:00
coolreader18
e0f222cf4f Don't hold on to a PyObjectRef from a python -> js closure 2019-02-23 00:20:15 -06:00
coolreader18
09e2a7a493 Add js_name for .set_stdout() 2019-02-23 00:02:12 -06:00
coolreader18
955d0b3a91 Merge branch 'master' into wasm-vm-class 2019-02-22 22:53:34 -06:00
coolreader18
65857e7261 Merge 2019-02-22 22:20:05 -06:00
coolreader18
9e176902b9 Use crate:: imports 2019-02-21 23:25:05 -06:00
coolreader18
8c222af65b Include details about thread_local! for WASM 2019-02-20 22:33:52 -06:00
Windel Bouwman
e058179b04 Merge pull request #458 from ZapAnton/2018_edition
Migrated the project to the Rust 2018 edition
2019-02-20 16:44:31 +01:00
coolreader18
8e5073e524 Convert bytes and bytearrays to Uint8Arrays 2019-02-19 17:58:57 -06:00
coolreader18
d716313283 Add content_type option to headers 2019-02-18 15:54:06 -06:00
coolreader18
92a3733541 Add body option to fetch 2019-02-18 15:38:12 -06:00
coolreader18
4edca2121d Convert some fetch options to kwargs, add PyFuncArgs method 2019-02-18 15:25:52 -06:00