Commit Graph
693 Commits
Author SHA1 Message Date
Joey Hain 053ceb1a30 Move payload boxing into PyObject::new 2019-03-10 20:19:28 -07:00
coolreader18 09ab6d1d7c Reformat 2019-03-10 19:12:48 -05:00
coolreader18 40ef62db70 Use a generator for the mandelbrot demo snippet 2019-03-10 17:42:39 -05:00
coolreader18 29ec84ead9 Change main.js to print to the console 2019-03-10 17:22:22 -05:00
coolreader18 8407f7498e Change setStdout to take "console" instead of undefined 2019-03-10 17:20:32 -05:00
Joey Hain 4510489bba Fix PyObjectPayload usage in wasm 2019-03-10 15:19:04 -07:00
Windel Bouwman ded7acc427 Merge pull request #643 from palaviv/interactive-shell
Add interactive shell to WASM demo
2019-03-10 18:18:41 +01:00
Adam Kelly 0ff5155af9 Rename mk_module to make_module. 2019-03-10 17:10:51 +00:00
Aviv Palivoda f27cb5b8ed Don't delete prompt 2019-03-10 18:40:03 +02:00
Aviv Palivoda 625e181fd8 Use snakeCase 2019-03-10 18:38:17 +02:00
Aviv Palivoda 264d218b70 Use seperate VM for interactive shell 2019-03-10 18:36:29 +02:00
Adam Kelly 3fbf627582 Merge branch 'master' into scope_globals_locals 2019-03-10 13:00:03 +00:00
Adam Kelly 4a82c8fad5 Rename AttributeProtocol2 -> NameProtocol with method name changes. 2019-03-10 12:51:34 +00:00
Adam Kelly 6ad528c15c Reintroduce new_scope for the common case of an empty scope. 2019-03-10 12:38:43 +00:00
Adam Kelly 0e23e706c9 Restructure scope to distinguish between locals and globals. 2019-03-10 12:38:43 +00:00
Aviv Palivoda 669aa70aab Support ':' in interactive shell 2019-03-09 21:23:59 +02:00
Aviv Palivoda 03d431ecac Support backspace in interactive shell 2019-03-09 21:17:13 +02:00
Aviv Palivoda ec3ace527b Change prompt to >>>>> 2019-03-09 20:57:36 +02:00
Aviv Palivoda 976c9e8b58 Add interactive shell to WASM demo 2019-03-09 18:41:02 +02:00
Joey 010969f2d2 Merge pull request #641 from RustPython/py_module_use
Use py_module at more places.
2019-03-09 07:04:43 -08:00
Windel Bouwman 6ba5b091e9 Use py_module at more places. 2019-03-09 12:38:14 +01:00
Windel Bouwman adde4e731f Merge pull request #616 from coolreader18/wasm-syntax-error-location
[WASM] Add row and column info of a syntax error to the JS error
2019-03-09 12:13:23 +01:00
coolreader18 f1b156dfbf Merge branch 'master' into store-rcs-in-stored-vm 2019-03-08 20:03:13 -06:00
coolreader18 c563a6d498 Convert Python errors to JS errors with row 2019-03-07 20:48:14 -06:00
coolreader18 5569f8d322 Merge branch 'master' of git://github.com/RustPython/RustPython into wasm-syntax-error-location 2019-03-07 20:27:11 -06:00
coolreader18 7b8c8900bc Allow JS errors to get the row and column info of the error 2019-03-06 18:54:57 -06:00
Windel Bouwman 6d84b4d4e9 Less explicit PyFuncArgs is better. implemented a From trait for PyFuncArgs 2019-03-06 12:02:01 +01:00
coolreader18 b5248fbd82 Fix Cargo.toml versions 2019-03-05 17:27:56 -06:00
coolreader18 63613802ca Merge branch 'master' into store-rcs-in-stored-vm 2019-03-05 17:18:43 -06:00
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
Joeyandcoolreader18 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
coolreader18 5428154c81 Merge branch 'master' into store-rcs-in-stored-vm 2019-03-02 07:53:48 -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 f3e29c8d5f Merge pull request #581 from coolreader18/wasm-example-crate-alert
Use alert() for the WASM example crate
2019-03-02 10:31:40 +01: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
coolreader18 60603d250e Use alert() for the WASM example crate 2019-03-01 18:06:50 -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 179304bc93 Update WASM example crate/app 2019-02-26 23:48:23 -06:00
coolreader18 c4513a176b Proper error handling for int to animationFrame id 2019-02-26 22:20:28 -06:00