1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00
This commit is contained in:
Bert Belder 2018-10-19 00:28:47 +02:00
parent d534ea41ad
commit d0b859ec37
No known key found for this signature in database
GPG key ID: 7A77887B2E2ED461
2 changed files with 2 additions and 2 deletions

View file

@ -41,4 +41,4 @@ testPerm({ write: true }, async function metricsUpdatedIfNoResponseAsync() {
const metrics = deno.metrics();
assert(metrics.opsDispatched === metrics.opsCompleted);
});
});

View file

@ -172,7 +172,7 @@ impl Isolate {
pub fn respond(&mut self, req_id: i32, buf: Buf) {
self.state.metrics_op_completed(buf.len() as u64);
// TODO(zero-copy) Use Buf::leak(buf) to leak the heap allocated buf. And
// don't do the memcpy in ImportBuf() (in libdeno/binding.cc)
unsafe {