diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-02-26 17:36:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-26 17:36:05 -0500 |
commit | b8a537d020f5e4495572daa4d8a59f51fa3b20d1 (patch) | |
tree | 468164b8dcc8ce0bcd64e75b63e4a3af0da36f15 /libdeno/libdeno_test.js | |
parent | 5dfbbbb07a8f484dca27bbe0d7a3bafb0bdb91fd (diff) |
deno_core (#1827)
A new low-level crate with focus on speed.
This doesn't yet hook into the existing code base.
Diffstat (limited to 'libdeno/libdeno_test.js')
-rw-r--r-- | libdeno/libdeno_test.js | 6 |
1 files changed, 3 insertions, 3 deletions
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); |