Commit Graph

1690 Commits

Author SHA1 Message Date
Aviv Palivoda
dc0bd73d12 Fix compiler warnings 2019-02-27 20:23:02 +02:00
Aviv Palivoda
4191ba67b3 Copy instead of clone 2019-02-27 20:19:10 +02:00
Aviv Palivoda
716eb4afca Add validation to connect and bind address 2019-02-27 19:54:39 +02:00
Aviv Palivoda
dff6b0be36 Rename sk to socket_kind 2019-02-27 19:54:39 +02:00
Aviv Palivoda
2bdbc40a45 socket.recv read amount of bytes asked 2019-02-27 19:50:31 +02:00
Adam Kelly
676130fc49 Use refcells in frames to solve frame mutability problem. 2019-02-27 10:47:33 +00:00
Adam Kelly
4dd6592aad Keep a stack of frames in the VM. 2019-02-27 10:47:33 +00:00
Windel Bouwman
6c8584cc11 Merge pull request #564 from alexpantyukhin/int_shifts
add overflow errors for int shifts.
2019-02-27 10:55:19 +01:00
alexpantyukhin
70ad78eb21 fix error messages. 2019-02-27 13:22:27 +04: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
Windel Bouwman
d5976e2f83 Merge pull request #563 from coolreader18/demo-bits-and-bobs
Quality of life improvements for the demo.
2019-02-27 09:26:46 +01:00
Windel Bouwman
9a36951428 Merge pull request #559 from adrian17/list_sort
Add list.sort, sorted()
2019-02-27 09:24:22 +01:00
Windel Bouwman
28d5acc25c Merge pull request #552 from AaronRocinante/lexer_handle_random_byte
add lexer error
2019-02-27 08:13:19 +01:00
alexpantyukhin
15e6187583 add overflow errors for int shifts. 2019-02-27 11:11:38 +04:00
Windel Bouwman
f8e96394b7 Merge pull request #561 from rickyhan/rustfmt
Rustfmt
2019-02-27 08:11:33 +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
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
3df8f1c788 Update the snippet on page load; insert spaces when tab is pressed 2019-02-26 20:55:23 -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
21ebb03242 rust fmt 2019-02-26 18:38:16 -05:00
ricky han
ec93c55e6d rustfmt 2019-02-26 18:37:40 -05:00
ricky han
233f5d42fb Merge branch 'rustfmt' into new_vm_fns 2019-02-26 18:33:58 -05:00
ricky han
d5f0e25686 add rustfmt.toml 2019-02-26 18:32:27 -05:00
ricky han
30145ec6e2 cargo fmt 2019-02-26 17:47:03 -05:00
ricky han
830cc7e990 revert macro 2019-02-26 17:46:06 -05:00
ricky han
0a2aa1e64b fix compile 2019-02-26 17:39:56 -05:00
Ricky Han
0722487d16 Merge pull request #1 from RustPython/master
upstream
2019-02-26 17:21:57 -05:00
Windel Bouwman
d6242ac6e3 Use py_module macro on ast module. 2019-02-26 22:27:59 +01:00
Adrian Wielgosik
45da6b8af1 Add list.sort, sorted() 2019-02-26 22:03:45 +01:00
Aaron
267934bb49 fmt 2019-02-26 12:50:18 -08:00
Windel Bouwman
f2e60b24e1 Add initial platform module. 2019-02-26 21:42:38 +01:00
Windel Bouwman
a6341d3ec8 Merge pull request #558 from silmeth/io-import
fix io module being initialized multiple times
2019-02-26 21:03:47 +01:00
silmeth
5949a9bd13 fix io module being imported multiple times 2019-02-26 20:23:43 +01:00
Windel Bouwman
c33abe91e9 Use py_module macro at more places. 2019-02-26 19:53:58 +01: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
aa48718d0a Merge pull request #549 from coolreader18/rust-value-payload
Add AnyRustValue payload variant
2019-02-26 17:26:44 +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
Windel Bouwman
f8b9d19ccc Merge pull request #553 from RustPython/joey/refcell-in-payload
Remove outer RefCell from PyObjectRef
2019-02-26 17:18:59 +01:00
Windel Bouwman
c3309ee867 Merge pull request #555 from RustPython/dis_dis
Dis dis
2019-02-26 17:07:41 +01:00
Ricky Han
53eff6c9d7 revert 2019-02-26 05:11:38 -05:00
Adam Kelly
73a65a1c77 dis.rs - small refactor dis_dis. 2019-02-26 09:41:39 +00:00
Adam Kelly
79f43ad762 Add support for pulling __code__ out of a function (and a test that hits lots of instructions). 2019-02-26 09:41:39 +00:00
Adam Kelly
2c0016a171 Minimal definition of dis.dis. 2019-02-26 09:41:39 +00:00
Aaron
b1088c629c fmt 2019-02-26 00:55:16 -08:00
Joey Hain
b8eb4c38e8 Fix wasm 2019-02-25 23:10:06 -08:00
Joey Hain
bd3630260a fix socket 2019-02-25 22:22:45 -08:00