des); var uint8Buffer = new Uint8Array(ab); // Map node into operations var operations = newNodes.map(function (n) { return { kind: "add", node: n }; }); uint8Buffer = applyOperations(ast, uint8Buffer, operations); return uint8Buffer.buffer; }