-
Notifications
You must be signed in to change notification settings - Fork 921
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
Are TypedArray slice() and subarray() implemented? #115
Comments
It appears that the issue is This code outputs the expected result when run in a standalone file test1.js
when run inside of a Native Messaging host the process does not pipe data. |
When
|
I tried with
|
I am implementing a Native Messaging (https://developer.chrome.com/docs/apps/nativeMessaging/#native-messaging-host-protocol) host in QuickJS and txiki.js.
During testing I noticed when
slice()
andsubarray()
are executed a) QuickJS exits; 2) txiki.js does not exit, yet does not slice or get subarray ofUint8Array
.The actual use case beyong echoing simple messages is using
popen()
to stream content, potentially indefinely, as implemented in C++ (https://github.com/guest271314/captureSystemAudio/blob/master/native_messaging/capture_system_audio/capture_system_audio.cpp) and Python (https://github.com/guest271314/captureSystemAudio/blob/master/native_messaging/capture_system_audio/capture_system_audio.py).Without the use of
slice()
andsubarray()
I also noticed thatpopen()
appears to block. This issue is specifically to address the question of whether or notTypedArray
slice()
andsubarray()
methods are implemented by the engine?Code
The text was updated successfully, but these errors were encountered: