summaryrefslogtreecommitdiff
path: root/libdeno/libdeno_test.js
diff options
context:
space:
mode:
Diffstat (limited to 'libdeno/libdeno_test.js')
-rw-r--r--libdeno/libdeno_test.js6
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);