after refactor - some tests are working again

This commit is contained in:
Kevin Jahns
2019-04-05 00:37:09 +02:00
parent 30bf3742c9
commit e56899a02c
23 changed files with 234 additions and 152 deletions

View File

@@ -18,6 +18,7 @@ export class AbstractStruct {
* @readonly
*/
this.id = id
this.deleted = false
}
/**
* Merge this struct with the item to the right.
@@ -35,12 +36,6 @@ export class AbstractStruct {
get length () {
throw error.methodUnimplemented()
}
/**
* @type {boolean}
*/
get deleted () {
throw error.methodUnimplemented()
}
/**
* @param {encoding.Encoder} encoder The encoder to write data to.
* @param {number} offset
@@ -87,4 +82,10 @@ export class AbstractRef {
toStruct (transaction) {
throw error.methodUnimplemented()
}
/**
* @type {number}
*/
get length () {
return 1
}
}