Skip to content

Fix eval stdin pipe#332

Merged
saghul merged 2 commits intomasterfrom
fix-eval-stdin-pipe
Nov 29, 2022
Merged

Fix eval stdin pipe#332
saghul merged 2 commits intomasterfrom
fix-eval-stdin-pipe

Conversation

@saghul
Copy link
Copy Markdown
Owner

@saghul saghul commented Nov 29, 2022

No description provided.

The read() function returns undefined for EOF instead of 0 like when
reading from a file.

These now both work:

(pipe)
cat t.js | tjs

(file)
tjs < t.js
This was helpful when debugging the previous commit, and there is no
good reason to hide it.
@saghul saghul merged commit 80ea997 into master Nov 29, 2022
@saghul saghul deleted the fix-eval-stdin-pipe branch November 29, 2022 22:17
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.

1 participant