sq / JSIL

CIL to Javascript Compiler

Home Page:http://jsil.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CanWrite property getter missing in System.IO.Stream and derived classes

griestopf opened this issue · comments

My JSIL'd code crashes when trying to write to a memory stream when checking the stream for its CanWrite property
Probably in $bytestream.js the following should be added:

  $.Method({ Static: false, Public: true }, "get_CanWrite",
    (new JSIL.MethodSignature($.Boolean, [], [])),
    function get_CanWrite() {
      return true;
    }
  );