@turansky when I use a property marked with Seskar's
JsValue
, I get a strange compiled result. E.g.;
val remainingBytes = bytes.slice(index + delimiterBytes.size)
socket.unshift(remainingBytes, BufferEncoding.binary)
Becomes:
var remainingBytes = bytes.slice(index + this_1.length | 0);
0;
this._this__u8e3s4__1.socket_1.unshift(remainingBytes, 'binary');
Note the
0;
When I use:
val remainingBytes = bytes.slice(index + delimiterBytes.size)
socket.unshift(remainingBytes, "binary".unsafeCast<BufferEncoding>())
It correctly compiles to:
var remainingBytes = bytes.slice(index + this_1.length | 0);
this._this__u8e3s4__1.socket_1.unshift(remainingBytes, 'binary');
Do you recognize if it is indeed a Seskar bug?
Other example:
0;
this.this$0__1.socket_1.once('close', closeHandler);
0;
this.this$0__1.socket_1.once('end', endHandler);
0;
this.this$0__1.socket_1.once('error', errorHandler);
0;
this.this$0__1.socket_1.on('readable', readableHandler);