Fix promises sometimes not resolved #24
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Includes:
In the cases where we end up in the deleted
else
statement we do not call_transform
recursively, which leads to the fact that the initial promise is never resolved.One can end up in the deleted
else
block ifstdout
orstderr
is set to_O_TEXT
mode and a message is printed which is exactly 10 symbols on Windows. Any message on a_O_TEXT
buffer has its line feeds replaced with a carriage-return line feed pair. Due to the fact that the number 10 represents the ASCII code for a line feed we are liable to error in that way.Note that the
stderr
pipe is currently unused in the production code, so there's no need to rebuild the binaries prior to publishing a new version of the library.Ping @rosen-vladimirov @TsvetanMilanov