Commit Graph
693 Commits
Author SHA1 Message Date
coolreader18 072c8725fc Fix get_prop on primitives 2019-06-21 20:20:21 -05:00
coolreader18 886f77bdff Add PyJsValue::instanceof 2019-06-21 20:20:20 -05:00
coolreader18 a3735da489 Move confirm and prompt to browser.py 2019-06-21 20:20:20 -05:00
coolreader18 5627ab2345 Add PyJsValue::construct() 2019-06-21 20:20:20 -05:00
coolreader18 93cdd94ab7 Add browser.py module 2019-06-21 20:20:20 -05:00
coolreader18 56bcb02a5e Add _js module and fix imports 2019-06-21 20:20:20 -05:00
coolreader18 650139b918 Merge pull request #1048 from RustPython/revert-1037-coolreader18/option-source_path
Revert "Make CodeObject.source_path an Option<String>", just add a parameter to import_codeobj
2019-06-21 11:49:03 -05:00
coolreader18 aefbae40e4 Revert "Make CodeObject.source_path an Option<String>" 2019-06-20 12:01:20 -05:00
coolreader18 0ac42ac9aa Add convenience functions 2019-06-19 17:30:09 -05:00
coolreader18 9ac854aea5 Use serde_wasm_bindgen for wasm ser/de 2019-06-18 14:32:34 -05:00
coolreader18 a8d80193c7 Move PyObject serialization to its own file 2019-06-18 13:31:58 -05:00
coolreader18 b74b65d37e Make CodeObject.source_path an Option<String> 2019-06-16 19:59:04 -05:00
coolreader18 45bb2bd263 Split off bytecode compilation into a separate crate 2019-06-12 21:43:43 -05:00
coolreader18 cd61248635 Merge branch 'master' into coolreader18/demo-repl-continuation 2019-06-08 13:17:05 -05:00
Maxim Kurnikov 0098e8485a move PyFuncArgs.kwargs to IndexMap 2019-05-22 03:18:15 +03:00
Yonatan Goldschmidt 84684e5f7d Don't use RefCell in tuple object 2019-05-19 23:57:32 +03:00
Seo Sanghyeon b76da2ad05 Avoid timeout in WASM test 2019-05-17 18:58:59 +09:00
Jeong YunWon 509394080b Inject __builtins__ to scope only when it doesn't exist 2019-05-11 03:05:18 +09:00
Jeong YunWon f69c79bdc7 Add __builtins__ to globals() 2019-05-11 01:17:22 +09:00
Aviv Palivoda c57fd1b96e Remove closure 2019-05-03 23:52:02 +03:00
Aviv Palivoda d121b422b6 Add browser.load_module 2019-05-03 16:15:18 +03:00
coolreader18 801c864645 Bump WASM npm version 2019-04-21 11:30:40 -05:00
coolreader18 de3900bcad Upgrade deps 2019-04-19 15:17:03 -05:00
coolreader18 a6f3b9a5ff Add PyCallable 2019-04-19 10:14:57 -05:00
Windel Bouwman eb16f16566 Improve syntax error with line information. 2019-04-17 20:02:24 +02:00
coolreader18 a91cfd16bf Fix WASM import error 2019-04-12 14:28:26 -04:00
Adrian Wielgosik 585e6e5428 Drop IntoPyNativeFunc impl to fix Nightly/Beta breakages. 2019-04-12 19:28:09 +02:00
Adam Kelly e04275b199 Missed get_key_values_pairs removal in wasm. 2019-04-10 09:48:53 +01:00
coolreader18 422ab69b99 Use impl style classes 2019-04-08 21:50:38 -05:00
coolreader18 7ca3b77fcd Just a fn 2019-04-06 23:55:30 -05:00
coolreader18 5afc558564 Add id() method 2019-04-06 23:47:01 -05:00
coolreader18 3aeaa05f1a Merge branch 'master' into coolreader18/wasm-cleanup1 2019-04-06 10:11:07 -05:00
Adam Kelly 7b2d92f495 Delete DictProtocol. impl ItemProtocol for PyDictRef. 2019-04-06 10:15:29 +01:00
coolreader18 157204c61a Clean up the wasm crate 2019-04-05 23:24:26 -05:00
Adam Kelly ec94168a15 Remove objdict::get_key_value_pairs. 2019-04-05 16:16:55 +01:00
Adam Kelly b943f4a4bb Historic real proper dictionary support. 2019-04-05 09:50:31 +01:00
Adam Kelly 9ed051e3b7 Module Initialisation takes VirtualMachine rather than PyContext. 2019-04-05 09:50:31 +01:00
Adam Kelly c8eda3733d Eliminate ctx.set_attr. 2019-04-05 09:50:31 +01:00
coolreader18 42768b20e5 Small demo improvements 2019-03-31 17:53:53 -05:00
coolreader18 b621a13415 Merge branch 'master' into coolreader18/update-deps 2019-03-27 22:32:42 -04:00
Joey Hain 625d2357bd Fix wasm 2019-03-25 19:34:24 -07:00
coolreader18 e819ca6b87 Merge branch 'master' into coolreader18/update-deps 2019-03-25 21:41:32 -04:00
coolreader18 ac2a5e281c Add comment explaining bytes -> Uint8Array conversion 2019-03-25 19:37:16 -05:00
Adam Kelly bbb7162472 Various dictionary changes.
* vm.ctx.new_dict returns a PyDictRef
* Special case for module goes away.
* Instances get a real dictionary.
2019-03-25 16:37:20 +00:00
coolreader18 565719dcda Update cargo dependencies 2019-03-24 11:26:41 -05:00
coolreader18 0ac1c1f19c Add line continuation for the WASM demo terminal 2019-03-24 08:42:18 -05:00
coolreader18 946103bca8 Merge branch 'master' into coolreader18/wasm-browser-dom 2019-03-23 20:12:26 -05:00
ben 00540dec35 Fix wasm, to reflect that PyObject.typ is now a PyClassRef 2019-03-24 10:51:52 +13:00
ben 6fa059fd6c Make PyObject.typ a PyClassRef 2019-03-24 10:51:52 +13:00
coolreader18 0aabe88c5d Put browser class methods into impl blocks 2019-03-23 14:04:14 -05:00