title: Converting byte[] to ArrayBuffer in Nashorn
body: <p>How do I convert an array of bytes into <code>ArrayBuffer</code> in Nashorn? I am trying to insert binary data into a pure JavaScript environment (i.e., it doesn't have access to <code>Java.from</code> or <code>Java.to</code>) and so would like to create an instance out an array of bytes. </p>