mol_regexp 0.0.1559 → 0.0.1561
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node.test.js +13 -2
- package/node.test.js.map +1 -1
- package/package.json +1 -1
package/node.test.js
CHANGED
|
@@ -924,7 +924,7 @@ var $;
|
|
|
924
924
|
emit(quant = $mol_wire_cursor.stale) {
|
|
925
925
|
for (let i = this.sub_from; i < this.data.length; i += 2) {
|
|
926
926
|
;
|
|
927
|
-
this.data[i].absorb(quant);
|
|
927
|
+
this.data[i].absorb(quant, this.data[i + 1]);
|
|
928
928
|
}
|
|
929
929
|
}
|
|
930
930
|
peer_move(from_pos, to_pos) {
|
|
@@ -1175,13 +1175,24 @@ var $;
|
|
|
1175
1175
|
pub?.complete();
|
|
1176
1176
|
}
|
|
1177
1177
|
}
|
|
1178
|
-
absorb(quant = $mol_wire_cursor.stale) {
|
|
1178
|
+
absorb(quant = $mol_wire_cursor.stale, pos = -1) {
|
|
1179
1179
|
if (this.cursor === $mol_wire_cursor.final)
|
|
1180
1180
|
return;
|
|
1181
1181
|
if (this.cursor >= quant)
|
|
1182
1182
|
return;
|
|
1183
1183
|
this.cursor = quant;
|
|
1184
1184
|
this.emit($mol_wire_cursor.doubt);
|
|
1185
|
+
if (pos >= 0 && pos < this.sub_from - 2) {
|
|
1186
|
+
const pub = this.data[pos];
|
|
1187
|
+
if (pub instanceof $mol_wire_task)
|
|
1188
|
+
return;
|
|
1189
|
+
for (let cursor = this.pub_from; cursor < this.sub_from; cursor += 2) {
|
|
1190
|
+
const pub = this.data[cursor];
|
|
1191
|
+
if (pub instanceof $mol_wire_task) {
|
|
1192
|
+
pub.destructor();
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1185
1196
|
}
|
|
1186
1197
|
[$mol_dev_format_head]() {
|
|
1187
1198
|
return $mol_dev_format_native(this);
|