bobe 0.0.75 → 0.0.76
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/dist/bobe.cjs +10 -5
- package/dist/bobe.cjs.map +1 -1
- package/dist/bobe.compiler.cjs +10 -5
- package/dist/bobe.compiler.cjs.map +1 -1
- package/dist/bobe.compiler.esm.js +10 -5
- package/dist/bobe.compiler.esm.js.map +1 -1
- package/dist/bobe.esm.js +10 -5
- package/dist/bobe.esm.js.map +1 -1
- package/dist/index.umd.js +10 -5
- package/dist/index.umd.js.map +1 -1
- package/package.json +5 -5
package/dist/bobe.cjs
CHANGED
|
@@ -338,9 +338,7 @@ class Tokenizer {
|
|
|
338
338
|
return this.token;
|
|
339
339
|
} catch (error) {
|
|
340
340
|
throw error;
|
|
341
|
-
} finally {
|
|
342
|
-
this.handledTokens.push(this.token);
|
|
343
|
-
}
|
|
341
|
+
} finally {}
|
|
344
342
|
}
|
|
345
343
|
locStart() {
|
|
346
344
|
}
|
|
@@ -376,7 +374,6 @@ class Tokenizer {
|
|
|
376
374
|
}
|
|
377
375
|
const trimmed = value.replace(/\/\/[\s\S]+/, '').trim();
|
|
378
376
|
this.setToken(TokenType.Identifier, trimmed ? trimmed : true, 0);
|
|
379
|
-
this.handledTokens.push(this.token);
|
|
380
377
|
this.locEnd();
|
|
381
378
|
return this.token;
|
|
382
379
|
}
|
|
@@ -397,7 +394,6 @@ class Tokenizer {
|
|
|
397
394
|
char = this.code[this.i];
|
|
398
395
|
}
|
|
399
396
|
this.setToken(TokenType.Identifier, value, 0);
|
|
400
|
-
this.handledTokens.push(this.token);
|
|
401
397
|
this.locEnd();
|
|
402
398
|
return this.token;
|
|
403
399
|
}
|
|
@@ -2338,10 +2334,19 @@ class Interpreter {
|
|
|
2338
2334
|
}
|
|
2339
2335
|
removeForItem(children, i) {
|
|
2340
2336
|
const child = children[i];
|
|
2337
|
+
const after = child.realAfter;
|
|
2341
2338
|
this.removeLogicNode(child);
|
|
2342
2339
|
this.remove(child.realBefore);
|
|
2343
2340
|
this.remove(child.realAfter);
|
|
2344
2341
|
child.effect.dispose();
|
|
2342
|
+
child.effect = undefined;
|
|
2343
|
+
child.data = undefined;
|
|
2344
|
+
child.context = undefined;
|
|
2345
|
+
after[FakeNode] = undefined;
|
|
2346
|
+
child.forNode = undefined;
|
|
2347
|
+
child.realParent = undefined;
|
|
2348
|
+
child.realAfter = undefined;
|
|
2349
|
+
child.realBefore = undefined;
|
|
2345
2350
|
}
|
|
2346
2351
|
reuseForItem(child, data, itemExp, i, indexName, indexValue) {
|
|
2347
2352
|
if (typeof itemExp === 'string') {
|