Skip to content

Commit

Permalink
jsc/wasm32/wasm32.jsc: closing a directory doesn't do anything
Browse files Browse the repository at this point in the history
  • Loading branch information
pipcet committed Feb 7, 2021
1 parent a803d2f commit b14c5a6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jsc/wasm32/wasm32.jsc
Original file line number Diff line number Diff line change
Expand Up @@ -2798,6 +2798,11 @@ function ThinThinDD(process, fdno)
}
ThinThinDD.prototype = Object.create(ThinThinFD.prototype);

ThinThinDD.prototype.close = function ()
{
return 0;
};

ThinThinDD.prototype.mode = function ()
{
return %{S_IFDIR + 0777};
Expand Down

0 comments on commit b14c5a6

Please sign in to comment.