summaryrefslogtreecommitdiff
path: root/core/01_core.js
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2021-09-10 15:47:09 -0700
committerGitHub <noreply@github.com>2021-09-10 15:47:09 -0700
commitfa963909e5c48cacd60cc02db200927611fa8e91 (patch)
tree049887e4cbdc3cd9538077fa23d461814b671041 /core/01_core.js
parent87052927afd505ff1c5d42075cd23a3619b29011 (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.js5
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,