diff options
author | Bert Belder <bertbelder@gmail.com> | 2021-09-10 15:47:09 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-10 15:47:09 -0700 |
commit | fa963909e5c48cacd60cc02db200927611fa8e91 (patch) | |
tree | 049887e4cbdc3cd9538077fa23d461814b671041 /core/01_core.js | |
parent | 87052927afd505ff1c5d42075cd23a3619b29011 (diff) |
perf(ext/http): optimize auto cleanup of request resource (#11978)
Fixes #11963.
Diffstat (limited to 'core/01_core.js')
-rw-r--r-- | core/01_core.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/01_core.js b/core/01_core.js index b1497c934..296d9bbcf 100644 --- a/core/01_core.js +++ b/core/01_core.js @@ -148,6 +148,10 @@ opSync("op_close", rid); } + function tryClose(rid) { + opSync("op_try_close", rid); + } + function print(str, isErr = false) { opSync("op_print", str, isErr); } @@ -175,6 +179,7 @@ opSync, ops, close, + tryClose, print, resources, registerErrorBuilder, |