dirty hack to fix some wrongful caching

This commit is contained in:
Thomas Weber committed 2020-07-06 23:44:49 -05:00
1 parent c6b9df757c
commit d5546c6b05
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -28,7 +28,7 @@ const number = /** @param {InputUtil} util */ (util) => {
const NUM = util.fieldValueUnsafe('NUM');
const number = Number(NUM);
if (!Number.isNaN(number)) {
return util.number(number);
return util.number('' + number);
}
return util.fieldString('NUM');
};
+1 -1
View File
@@ -428,7 +428,7 @@ class Thread {
tryCompile(cache) {
let result;
const topBlock = this.topBlock;
const topBlock = this.target.id + '|' + this.topBlock;
if (cache.hasEntry(topBlock)) {
if (cache.isCachedAsError(topBlock)) {
return;