this.dirty = true
if (typeof value === 'object' && value !== null) {
assert(value instanceof Lazy && value.transaction === this)
- value = [-1, 0, value]
+ let [ptr, len] = value.ptr_len || [-1, 0]
+ value = [ptr, len, value]
}
this.value = value
}
this.ptr_len = null // mark dirty
if (typeof value === 'object' && value !== null) {
assert(value instanceof Lazy && value.transaction === this.transaction)
- value = [-1, 0, value]
+ let [ptr, len] = value.ptr_len || [-1, 0]
+ value = [ptr, len, value]
}
this.array[key] = value
this.length = this.array.length
this.ptr_len = null // mark dirty
if (typeof value === 'object' && value !== null) {
assert(value instanceof Lazy && value.transaction === this.transaction)
- value = [-1, 0, value]
+ let [ptr, len] = value.ptr_len || [-1, 0]
+ value = [ptr, len, value]
}
this.object[key] = value
}