Skip to content

Commit d33db1b

Browse files
committed
AEDebugging_ Fix tests
SQUASHED: AUTO-COMMIT-src-client-reactive-active-expression-rewriting-active-expression-rewriting.js,
1 parent baa56cf commit d33db1b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/client/reactive/active-expression-rewriting/active-expression-rewriting.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -377,10 +377,12 @@ const DependenciesToAExprs = {
377377

378378
associate(dep, aexpr) {
379379
const location = aexpr.meta().get("location");
380-
if (location && location.file && !this._AEsPerFile.has(location.file)) {
381-
this._AEsPerFile.set(location, new Set());
380+
if(location && location.file) {
381+
if (!this._AEsPerFile.has(location.file)) {
382+
this._AEsPerFile.set(location.file, new Set());
383+
}
384+
this._AEsPerFile.get(location.file).add(aexpr);
382385
}
383-
this._AEsPerFile.get(location).add(aexpr);
384386
this._depsToAExprs.associate(dep, aexpr);
385387
dep.updateTracking();
386388
DebuggingCache.debouncedUpdateDebuggingViews();
@@ -389,7 +391,7 @@ const DependenciesToAExprs = {
389391
disconnectAllForAExpr(aexpr) {
390392
const location = aexpr.meta().get("location");
391393
if (location && location.file && this._AEsPerFile.has(location.file)) {
392-
this._AEsPerFile.get(location).delete(aexpr);
394+
this._AEsPerFile.get(location.file).delete(aexpr);
393395
}
394396
const deps = this.getDepsForAExpr(aexpr);
395397
this._depsToAExprs.removeAllLeftFor(aexpr);

0 commit comments

Comments
 (0)