Skip to content

Commit

Permalink
jsc/common/thinthin.jsc: make python hello world work
Browse files Browse the repository at this point in the history
./wasm32-unknown-none/wasm32-unknown-none/bin/python3 -c 'print(3+4)' < /dev/null

now prints 7. And a lot of debug info.
  • Loading branch information
pipcet committed Jan 30, 2021
1 parent 06a4507 commit 34c0867
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion jsc/common/thinthin.jsc
Original file line number Diff line number Diff line change
Expand Up @@ -3005,7 +3005,7 @@ if (typeof(os) !== "undefined" &&
this.HEAP32[bufptr+60>>2] = 0;
this.HEAP32[bufptr+64>>2] = 0;

if (false) {
if (fd instanceof ThinThinDD) {
this.HEAP32[bufptr+6*4>>2] = 4 << 12;
} else {
this.HEAP32[bufptr+6*4>>2] = 1 << 15;
Expand Down Expand Up @@ -3571,6 +3571,11 @@ ThinThin.unlinkat = function ()
return 0;
};

ThinThin.mkdirat = function ()
{
return 0;
};

ThinThin.fcntl_v = function ()
{
return %{O_RDWR};
Expand Down

0 comments on commit 34c0867

Please sign in to comment.