var log = [];
Promise.resolve(0).then(() => { log.push("A"); }).then(() => { log.push("C"); });
Promise.resolve(0).then(() => { log.push("B"); }).then(() => { log.push("D"); });
__drain();
log.join(",")