When d8 reads a file, if the flag is set then the file read is hijacked and redirected to the tcp port (here: https://source.chromium.org/chromium/chromium/src/+/main:v8/src/d8/d8.cc;l=4290;drc=d5d65f04079b486bfbe0fa272cdaf242525af74b). There's no other way to use this from d8, or for JS code in d8 to access this port.
On Wed, Jul 24, 2024 at 7:10 AM guest271314 <guest271...@gmail.com> wrote: > Thanks. How does it work though? > > The only example I found was a Python script. I didn't see a way to use > the capability in d8. > > > On Sun, Jul 21, 2024 at 11:06 PM Leszek Swirski <lesz...@chromium.org> > wrote: > >> --read-from-tcp-port=PORT is a little hack to allow d8 running on a >> remote device (in particular, on an Android phone) to read files from an >> external server (in particular, an attached workstation). I added this to >> help us run tests on an Android device without needing to push all the >> relevant JS files to the device, by instead doing some port forwarding (see >> tools/adb-d8.py); it's not for reading stdin. >> >> On Saturday, July 20, 2024 at 4:17:38 PM UTC+2 guest...@gmail.com wrote: >> >>> How does --read-from-tcp-port=PORT work? >>> >>> Does d8 read from TCP port as stdin with readline()? >>> >>> Is the read from TCP port executed by d8? >> >> -- >> -- >> v8-users mailing list >> v8-users@googlegroups.com >> http://groups.google.com/group/v8-users >> --- >> You received this message because you are subscribed to a topic in the >> Google Groups "v8-users" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/v8-users/gaKe0NzA0Dc/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> v8-users+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/v8-users/6225de0a-cca2-434b-8a5b-3891b66e9266n%40googlegroups.com >> <https://groups.google.com/d/msgid/v8-users/6225de0a-cca2-434b-8a5b-3891b66e9266n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- > -- > v8-users mailing list > v8-users@googlegroups.com > http://groups.google.com/group/v8-users > --- > You received this message because you are subscribed to a topic in the > Google Groups "v8-users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/v8-users/gaKe0NzA0Dc/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > v8-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/v8-users/CA%2BsyWAOVFTxH5JK7_u44jvRF5v5MspnpSJkEPQk_-Y05gCjQdA%40mail.gmail.com > <https://groups.google.com/d/msgid/v8-users/CA%2BsyWAOVFTxH5JK7_u44jvRF5v5MspnpSJkEPQk_-Y05gCjQdA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/v8-users/CAGRskv_Wb6ePaDacdzRXDzTjDsw32NeRGW97YMzng3FCQmvTnQ%40mail.gmail.com.