You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That almost already works if you write it like echo 'print("hello")' | qjs /dev/stdin except for the fact that js_load_file treats fseek errors as fatal.
It tries to be clever and first size the file so it knows how much memory to allocate upfront but it could just read the file in blocks and allocate on the go.
Replace js_load_file with something that doesn't choke on special files
and don't call realpath(3) on /dev files because that doesn't work.
Fixes: quickjs-ng#945
Example:
echo "console.log('Hello World');" | node -
The text was updated successfully, but these errors were encountered: