Closed fperrad closed 6 years ago
I can't reproduce. What did you use to write your file.lua ? Sounds like an odd character is in there.
I created file.lua
with vim
.
$ hexdump -C file.lua
00000000 70 72 69 6e 74 20 27 66 6f 6f 27 0a |print 'foo'.|
0000000c
On Travis CI, you exercise only against node
v8.11.1 & v9.10.1
Looks like node only gained support for Uint8Array
in fs.readSync
in version 7.
See https://nodejs.org/docs/latest-v6.x/api/fs.html#fs_fs_readsync_fd_buffer_offset_length_position vs
https://nodejs.org/docs/latest-v7.x/api/fs.html#fs_fs_readsync_fd_buffer_offset_length_position
Test suite passes in node 7. Test suite has 11 failures in node 6; caused by:
Uint8Array
to fs.readSync
Math.exp
has wrong results:
$ nvm exec 7 node -e 'console.log(Math.exp(10))'
Running node v7.10.1 (npm v4.2.0)
22026.465794806718
$ nvm exec 6 node -e 'console.log(Math.exp(10))'
Running node v6.14.1 (npm v3.10.10)
22026.46579480671
@fperrad will be included in next fengari core point release. fengari-node-cli installed after that point in time will have the bug fixed. Let us know if you find anything else :)
With my configuration, I obtain a
nodejs
error.