Skip to content

Commit

Permalink
#1451 Fixed memory leak in web-component-tester, that is used for web…
Browse files Browse the repository at this point in the history
… tests running.
  • Loading branch information
jhou-pro committed Jan 30, 2023
1 parent 4ea34f1 commit 5364165
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,7 @@
listener = _a.listener;
return target.removeEventListener(type, listener);
});
delete ChildRunner.byUrl[this.url];
};
/**
* @return {ChildRunner} The `ChildRunner` that was registered for this
Expand Down Expand Up @@ -728,6 +729,7 @@

var url = this.url = iframe.src;
container.appendChild(iframe);
this.url = url;
ChildRunner.byUrl[url] = this;
this.timeoutId = setTimeout(function () {
return _this.loaded(new Error('Timed out loading ' + url));
Expand Down

0 comments on commit 5364165

Please sign in to comment.