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
Darwin Victors-MacBook-Pro.local 22.2.0 Darwin Kernel Version 22.2.0: Fri Nov 11 02:08:47 PST 2022; root:xnu-8792.61.2~4/RELEASE_X86_64 x86_64
Subsystem
test runner
How to reproduce
Considering a file test.txt is available in the current directory, then the following script does not work anymore starting from 19.2.0 (it crashed on byteLength access):
const{ readFile }=require("node:fs/promises");const{ test }=require("node:test");test("test",async()=>{constbuffer=awaitreadFile("./test.txt");console.log(buffer);console.log(buffer.byteLength);});
Version
19.2.0
Platform
Darwin Victors-MacBook-Pro.local 22.2.0 Darwin Kernel Version 22.2.0: Fri Nov 11 02:08:47 PST 2022; root:xnu-8792.61.2~4/RELEASE_X86_64 x86_64
Subsystem
test runner
How to reproduce
Considering a file
test.txt
is available in the current directory, then the following script does not work anymore starting from19.2.0
(it crashed onbyteLength
access):Works in
19.1.0
:Does not work in
19.2.0
:It does not work with the latest available version (
19.6.0
)Additional information
The following script works with all tested version (
19.1.0
,19.2.0
&19.6.0
) when not using the--test
flag:The text was updated successfully, but these errors were encountered: