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