From b8a537d020f5e4495572daa4d8a59f51fa3b20d1 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 26 Feb 2019 17:36:05 -0500 Subject: deno_core (#1827) A new low-level crate with focus on speed. This doesn't yet hook into the existing code base. --- libdeno/libdeno_test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libdeno/libdeno_test.js') diff --git a/libdeno/libdeno_test.js b/libdeno/libdeno_test.js index d6ea5f983..8b1ad2e04 100644 --- a/libdeno/libdeno_test.js +++ b/libdeno/libdeno_test.js @@ -103,11 +103,11 @@ global.GlobalErrorHandling = () => { }; // Allocate this buf at the top level to avoid GC. -const dataBuf = new Uint8Array([3, 4]); +const zeroCopyBuf = new Uint8Array([3, 4]); -global.DataBuf = () => { +global.ZeroCopyBuf = () => { const a = new Uint8Array([1, 2]); - const b = dataBuf; + const b = zeroCopyBuf; // The second parameter of send should modified by the // privileged side. const r = libdeno.send(a, b); -- cgit v1.2.3