mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
add dish translation tests for node
This commit is contained in:
parent
aeb08caf77
commit
65a3897f87
7 changed files with 147 additions and 24 deletions
|
@ -1039,8 +1039,7 @@ class Utils {
|
|||
if (!Utils.isNode()) {
|
||||
throw new TypeError("Browser environment cannot support readFileSync");
|
||||
}
|
||||
// Resist using node's Buffer.buffer here - this yields a 8192 length byteArray
|
||||
// regardless of the length of the buffer.
|
||||
|
||||
const arrayBuffer = Uint8Array.from(file.data);
|
||||
return arrayBuffer.buffer;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue