diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-09-19 08:24:34 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-09-24 22:16:23 -0400 |
commit | 234d5ea780d8621866da87097c78ec10167cbdc5 (patch) | |
tree | d9617f8ad9743c9193751c4490cfa3bc5cf2184f /libdeno/libdeno_test.js | |
parent | f42849744bbdd665008fdd7fd9a395659a23c802 (diff) |
libdeno.send(): Use GetContents instead of Externalize
Fixes #744.
Diffstat (limited to 'libdeno/libdeno_test.js')
-rw-r--r-- | libdeno/libdeno_test.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/libdeno/libdeno_test.js b/libdeno/libdeno_test.js index d51973ef0..ec8e4c752 100644 --- a/libdeno/libdeno_test.js +++ b/libdeno/libdeno_test.js @@ -103,18 +103,6 @@ global.JSSendArrayBufferViewTypes = () => { libdeno.send(dv); }; -global.JSSendNeutersBuffer = () => { - // Buffer should be neutered after transferring it to the native side. - const u8 = new Uint8Array([42]); - assert(u8.byteLength === 1); - assert(u8.buffer.byteLength === 1); - assert(u8[0] === 42); - const r = libdeno.send(u8); - assert(u8.byteLength === 0); - assert(u8.buffer.byteLength === 0); - assert(u8[0] === undefined); -}; - // The following join has caused SnapshotBug to segfault when using kKeep. [].join(""); |