'use strict';
var most = require('most');
var producer = most.just({ time: 0, value: false }).multicast();
var working = most.combine(function () {
return 0;
}, producer).multicast();
var broken = most.combine(function () {
return 2;
}, producer).startWith(1);
console.clear();
working.forEach(function (value) {
return document.write('working: ' + value + '
');
});
// expected: brokenConsumer should event 1 and 2
broken.forEach(function (value) {
return document.write('broken: ' + value + '
');
});
// removing one of the multicasts fixes the bug
// removing startWith emits 2