docs: public NativeArrayBuffer slice(double s, double e)
      {
          // Handle negative start as relative to start
          // Clamp as per the spec to between 0 and length
          int end = ScriptRuntime.toInt32(Math.max(0, Math.min(buffer.length, (e < 0 ? buffer.length + e : e))));
          int start = ScriptRuntime.toInt32(Math.min(end, Math.max(0, (s < 0 ? buffer.length + s : s))));
          int len = end - start;
  
          NativeArrayBuffer newBuf = new NativeArrayBuffer(len);
          System.arraycopy(buffer, start, newBuf.buffer, 0, len);
          return newBuf;
      }