diff options
author | Luca Casonato <hello@lcas.dev> | 2022-10-24 14:55:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-24 14:55:39 +0200 |
commit | c061538417cdb2b0a8f2d6eae7f5f11511ba34fe (patch) | |
tree | d8d8efc9e2a883d4ad21ebacf44e8e922fae794d /runtime/js/99_main.js | |
parent | f38666f5a348c5f40c66dd6e5896618b7f1b09bc (diff) |
refactor(ext/net): clean up variadic network ops (#16392)
Previously `op_net_listen`, `op_net_accept`, and various other ops in
ext/net where variadic on the transport. This created a lot of code
bloat. This commit updates the code to instead have separate ops for
each transport.
Diffstat (limited to 'runtime/js/99_main.js')
-rw-r--r-- | runtime/js/99_main.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js index a123fc24f..9934ddcd3 100644 --- a/runtime/js/99_main.js +++ b/runtime/js/99_main.js @@ -57,6 +57,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; @@ -682,6 +683,8 @@ delete Intl.v8BreakIterator; } performance.setTimeOrigin(DateNow()); + net.setup(runtimeOptions.unstableFlag); + const consoleFromV8 = window.console; const wrapConsole = window.__bootstrap.console.wrapConsole; @@ -779,6 +782,8 @@ delete Intl.v8BreakIterator; } performance.setTimeOrigin(DateNow()); + net.setup(runtimeOptions.unstableFlag); + const consoleFromV8 = window.console; const wrapConsole = window.__bootstrap.console.wrapConsole; |