diff options
Diffstat (limited to 'runtime/js')
-rw-r--r-- | runtime/js/40_testing.js | 16 | ||||
-rw-r--r-- | runtime/js/90_deno_ns.js | 5 | ||||
-rw-r--r-- | runtime/js/99_main.js | 5 |
3 files changed, 16 insertions, 10 deletions
diff --git a/runtime/js/40_testing.js b/runtime/js/40_testing.js index 069b27957..d013d651c 100644 --- a/runtime/js/40_testing.js +++ b/runtime/js/40_testing.js @@ -75,8 +75,10 @@ "op_crypto_sign_key": ["sign data", "awaiting the result of a `crypto.subtle.sign` call"], "op_crypto_subtle_digest": ["digest data", "awaiting the result of a `crypto.subtle.digest` call"], "op_crypto_verify_key": ["verify data", "awaiting the result of a `crypto.subtle.verify` call"], - "op_dgram_recv": ["receive a datagram message", "awaiting the result of `Deno.DatagramConn#receive` call, or not breaking out of a for await loop looping over a `Deno.DatagramConn`"], - "op_dgram_send": ["send a datagram message", "awaiting the result of `Deno.DatagramConn#send` call"], + "op_net_recv_udp": ["receive a datagram message via UDP", "awaiting the result of `Deno.DatagramConn#receive` call, or not breaking out of a for await loop looping over a `Deno.DatagramConn`"], + "op_net_recv_unixpacket": ["receive a datagram message via Unixpacket", "awaiting the result of `Deno.DatagramConn#receive` call, or not breaking out of a for await loop looping over a `Deno.DatagramConn`"], + "op_net_send_udp": ["send a datagram message via UDP", "awaiting the result of `Deno.DatagramConn#send` call"], + "op_net_send_unixpacket": ["send a datagram message via Unixpacket", "awaiting the result of `Deno.DatagramConn#send` call"], "op_dns_resolve": ["resolve a DNS name", "awaiting the result of a `Deno.resolveDns` call"], "op_fdatasync_async": ["flush pending data operations for a file to disk", "awaiting the result of a `Deno.fdatasync` call"], "op_fetch_send": ["send a HTTP request", "awaiting the result of a `fetch` call"], @@ -99,8 +101,10 @@ "op_make_temp_file_async": ["create a temporary file", "awaiting the result of a `Deno.makeTempFile` call"], "op_message_port_recv_message": ["receive a message from a MessagePort", "awaiting the result of not closing a `MessagePort`"], "op_mkdir_async": ["create a directory", "awaiting the result of a `Deno.mkdir` call"], - "op_net_accept": ["accept a TCP connection", "closing a `Deno.Listener`"], - "op_net_connect": ["connect to a TCP or UDP server", "awaiting a `Deno.connect` call"], + "op_net_accept_tcp": ["accept a TCP stream", "closing a `Deno.Listener`"], + "op_net_accept_unix": ["accept a Unix stream", "closing a `Deno.Listener`"], + "op_net_connect_tcp": ["connect to a TCP server", "awaiting a `Deno.connect` call"], + "op_net_connect_unix": ["connect to a Unix server", "awaiting a `Deno.connect` call"], "op_open_async": ["open a file", "awaiting the result of a `Deno.open` call"], "op_read_dir_async": ["read a directory", "collecting all items in the async iterable returned from a `Deno.readDir` call"], "op_read_link_async": ["read a symlink", "awaiting the result of a `Deno.readLink` call"], @@ -113,8 +117,8 @@ "op_sleep": ["sleep for a duration", "cancelling a `setTimeout` or `setInterval` call"], "op_stat_async": ["get file metadata", "awaiting the result of a `Deno.stat` call"], "op_symlink_async": ["create a symlink", "awaiting the result of a `Deno.symlink` call"], - "op_tls_accept": ["accept a TLS connection", "closing a `Deno.TlsListener`"], - "op_tls_connect": ["connect to a TLS server", "awaiting a `Deno.connectTls` call"], + "op_net_accept_tls": ["accept a TLS stream", "closing a `Deno.TlsListener`"], + "op_net_connect_tls": ["connect to a TLS server", "awaiting a `Deno.connectTls` call"], "op_tls_handshake": ["perform a TLS handshake", "awaiting a `Deno.TlsConn#handshake` call"], "op_tls_start": ["start a TLS connection", "awaiting a `Deno.startTls` call"], "op_truncate_async": ["truncate a file", "awaiting the result of a `Deno.truncate` call"], diff --git a/runtime/js/90_deno_ns.js b/runtime/js/90_deno_ns.js index b2612f999..3bfd26da7 100644 --- a/runtime/js/90_deno_ns.js +++ b/runtime/js/90_deno_ns.js @@ -130,10 +130,7 @@ networkInterfaces: __bootstrap.os.networkInterfaces, getGid: __bootstrap.os.getGid, getUid: __bootstrap.os.getUid, - listen: __bootstrap.netUnstable.listen, - connect: __bootstrap.netUnstable.connect, - listenDatagram: __bootstrap.netUnstable.listenDatagram, - Listener: __bootstrap.netUnstable.Listener, + listenDatagram: __bootstrap.net.listenDatagram, umask: __bootstrap.fs.umask, HttpClient: __bootstrap.fetch.HttpClient, createHttpClient: __bootstrap.fetch.createHttpClient, diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js index 1ac1153f8..afacd9b34 100644 --- a/runtime/js/99_main.js +++ b/runtime/js/99_main.js @@ -58,6 +58,7 @@ delete Intl.v8BreakIterator; const worker = window.__bootstrap.worker; const internals = window.__bootstrap.internals; const performance = window.__bootstrap.performance; + const net = window.__bootstrap.net; const crypto = window.__bootstrap.crypto; const url = window.__bootstrap.url; const urlPattern = window.__bootstrap.urlPattern; @@ -692,6 +693,8 @@ delete Intl.v8BreakIterator; } performance.setTimeOrigin(DateNow()); + net.setup(runtimeOptions.unstableFlag); + const consoleFromV8 = window.console; const wrapConsole = window.__bootstrap.console.wrapConsole; @@ -789,6 +792,8 @@ delete Intl.v8BreakIterator; } performance.setTimeOrigin(DateNow()); + net.setup(runtimeOptions.unstableFlag); + const consoleFromV8 = window.console; const wrapConsole = window.__bootstrap.console.wrapConsole; |