Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add stub for unix_isatty #928

Merged
merged 2 commits into from
Nov 22, 2019
Merged

Conversation

bandersongit
Copy link
Contributor

@bandersongit bandersongit commented Nov 20, 2019

Addresses #913 and reasonml/reason-native#207

I tested this by running some JS tests compiled with Rely normally in a terminal and by piping the output to cat which should not be a tty. I also console logged the result of calling Unix.isatty on Unix.stdin to verify the function was returning the correct values. I thought I would need to provide values for Unix.stdin etc, but it was not necessary. I verified that the unix.isatty returns false and does not error in chrome as well.

I couldn't figure out the test structure of this repo and this change is fairly simple, so I did not add any automated tests, but could do so if desired with some help.

image

image

image

@hhugo
Copy link
Member

hhugo commented Nov 21, 2019

Thanks, can you add an entry to the changelog (CHANGES.md) ?

@bandersongit
Copy link
Contributor Author

Thanks, can you add an entry to the changelog (CHANGES.md) ?

Done

@hhugo hhugo merged commit 494b8ac into ocsigen:master Nov 22, 2019
@hhugo
Copy link
Member

hhugo commented Nov 22, 2019

thanks for your contribution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants