You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version (complete output of terser -V or specific git commit)
5.19.4
Complete CLI command or minify() options used
try.terser.org
terser input
class myClass extends EventTarget {
static #happenedEvents = /*@__PURE__*/(() => {
const set = new Set();
window.addEventListener("event", e => myClass.#happenedEvents.add(e));
return set;
})();
#classProperty = "Whole class doesn't get stuff removed now at all";
}
terser output or error
class e extends EventTarget{static#e=(()=>{const t=new Set;return window.addEventListener("event",(t=>e.#e.add(t))),t})();#t="Whole class doesn't get stuff removed now at all"}
Expected result
EventTarget
(Or ideally if something like #1443 is implemented, nothing)
The text was updated successfully, but these errors were encountered:
danieltroger
changed the title
Pure notation in static class property is not respected if function references class itself
Pure notation in static class property declaration is not respected if function references class itself
Sep 8, 2023
Bug report or Feature request?
Bug
Version (complete output of
terser -V
or specific git commit)5.19.4
Complete CLI command or
minify()
options usedtry.terser.org
terser
inputterser
output or errorExpected result
(Or ideally if something like #1443 is implemented, nothing)
The text was updated successfully, but these errors were encountered: