Matt

Results 28 comments of Matt

I have this issue. RTS is asserted by default in the Windows USB serial driver I have nasty workarounds (using RealTerm, or a TCP redirector and accessing the device from...

I have a very similar question, in the following example `lookup[n]` doesn't narrow, but a `const P = lookup[n]` does, with no intervening yield/await/call side-effects. Is this the same issue?...

I believe this is common case of the type guard not working on array expressions (and maybe some other computed references) Try assigning the array element to a local variable...

Me too! But it's very long standing. I believe the issue is doing the control flow analysis to ensure than the array index expression remains constant under all circumstances

I'm not involved in TS development, so I've not really investigated. I think it's a limitation rather than by design. Some time ago I did try to pin it down,...

I think my guess may be correct: https://github.com/microsoft/TypeScript/issues/11483#issuecomment-257436774

Yes, I think that's the same case. Computed expressions like `objectsArray[index].prop` aren't narrowed, but simple ones like `local.prop` are.

Yes, it's pretty much dead. Most runtimes support async/await natively now, and I have no requirement to support legacy ones myself. If you want to fork & fix, go ahead

Can you point me at the area of the code where you see the problem? I'm interested in how it might impact my fork (which is now quite a way...

Ah OK. I did come across that one and pushed all the transactional stuff down into Java to avoid it (basically I have a call that accepts an array of...