Fix #2.
This commit is contained in:
parent
a0e8ad6462
commit
95a575fd2d
2 changed files with 5 additions and 14 deletions
|
@ -235,7 +235,9 @@ const Channel = function(length = 0) {
|
|||
const { order, promise } = Order(this);
|
||||
shifts.push(order);
|
||||
setImmediate(processOrders);
|
||||
return Object.freeze(promise);
|
||||
|
||||
// Don't freeze promise because Bluebird expects it to be mutable.
|
||||
return promise;
|
||||
},
|
||||
|
||||
slice: (start, end = Infinity) => {
|
||||
|
@ -333,7 +335,8 @@ const Channel = function(length = 0) {
|
|||
setImmediate(processOrders);
|
||||
}
|
||||
|
||||
return Object.freeze(promise);
|
||||
// Don't freeze promise because Bluebird expects it to be mutable.
|
||||
return promise;
|
||||
},
|
||||
|
||||
writeOnly: () => writeOnly
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue