-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Ensure that getDocument
handles Node.js Buffer
s more gracefully (issue 13075)
#13079
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
Conversation
From: Bot.io (Linux m4)ReceivedCommand cmd_unittest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.67.70.0:8877/73dfba02d036831/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_unittest from @Snuffleupagus received. Current queue size: 0 Live output at: http://3.101.106.178:8877/933e3bb32080b0e/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.67.70.0:8877/73dfba02d036831/output.txt Total script time: 3.56 mins
|
From: Bot.io (Windows)SuccessFull output at http://3.101.106.178:8877/933e3bb32080b0e/output.txt Total script time: 5.60 mins
|
b7d06c7
to
17c1d95
Compare
525b460
to
a6e572c
Compare
LoopbackPort
actually copies TypedArray
s as intended, and handle Node.js Buffer
s more gracefully in getDocument
(issue 13075)getDocument
with TypedArray
s that have a non-zero byteOffset
(issue 13075)
From: Bot.io (Linux m4)ReceivedCommand cmd_unittest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.67.70.0:8877/8e4a46c3b2eff5d/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_unittest from @Snuffleupagus received. Current queue size: 0 Live output at: http://3.101.106.178:8877/ac60089a023ffda/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/8e4a46c3b2eff5d/output.txt Total script time: 3.65 mins
|
From: Bot.io (Windows)SuccessFull output at http://3.101.106.178:8877/ac60089a023ffda/output.txt Total script time: 6.73 mins
|
a6e572c
to
8decae9
Compare
…issue 13075) While the JSDocs have never advertised `getDocument` as supporting Node.js `Buffer`s, that apparently doesn't stop users from passing such data structures to `getDocument`. In theory the existing `instanceof Uint8Array` check ought to have caught Node.js `Buffer`s, however for reasons that I don't even pretend to understand that check actually passes. Hence this patch which, *only* in Node.js environments, will special-case `Buffer`s to hopefully provide a slightly better out-of-the-box behaviour in Node.js environments[1]. --- [1] Although I'm not sure that we necessarily want to advertise this in the JSDocs, given the specialized use-case.
8decae9
to
50681d7
Compare
getDocument
with TypedArray
s that have a non-zero byteOffset
(issue 13075)getDocument
handles Node.js Buffer
s more gracefully (issue 13075)
/botio unittest |
From: Bot.io (Linux m4)ReceivedCommand cmd_unittest from @timvandermeij received. Current queue size: 0 Live output at: http://54.67.70.0:8877/078a58bb73762e0/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_unittest from @timvandermeij received. Current queue size: 0 Live output at: http://3.101.106.178:8877/27d8cc9a49ac3c6/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/078a58bb73762e0/output.txt Total script time: 3.55 mins
|
From: Bot.io (Windows)SuccessFull output at http://3.101.106.178:8877/27d8cc9a49ac3c6/output.txt Total script time: 5.66 mins
|
Thank you! |
Please refer to the individual commit messages for detailed information.
Fixes #13075