first working version that also considers holes in document updates - #263

This commit is contained in:
Kevin Jahns
2020-12-15 15:39:08 +01:00
parent 004a781a56
commit f8341220c3
5 changed files with 65 additions and 21 deletions

View File

@@ -22,6 +22,9 @@ export class GC extends AbstractStruct {
* @return {boolean}
*/
mergeWith (right) {
if (this.constructor !== right.constructor) {
return false
}
this.length += right.length
return true
}