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
{{ message }}
Repository navigation
Asserts in client module are compiled as debugger calls #2386
I think we should by default provide two different builds of the client engine. One that is used in production mode that is compiled as obfuscated and without asserts, and then one that is used in development mode that is pretty compiled and includes asserts.
Would that make sense?
As it stands now, it really doesn't make any sense that you hit a debugger; statement and just see obfuscated code.
Obfuscated or not most flow users won't care about flow StateTree or other internal logic most of the time. But that's just my feeling.
Having a non obfuscated version could be helpful for reporting issues.
Those asserts aren't supposed to happen at all, so from my point of view it's only a positive thing that they are so annoying (during development) that the developer won't ignore reporting the issue :)
Activity
Legioth commentedon Sep 13, 2017
I think we should by default provide two different builds of the client engine. One that is used in production mode that is compiled as obfuscated and without asserts, and then one that is used in development mode that is pretty compiled and includes asserts.
Would that make sense?
As it stands now, it really doesn't make any sense that you hit a
debugger;statement and just see obfuscated code.alvarezguille commentedon Sep 13, 2017
Obfuscated or not most flow users won't care about flow StateTree or other internal logic most of the time. But that's just my feeling.
Having a non obfuscated version could be helpful for reporting issues.
Legioth commentedon Sep 14, 2017
Those asserts aren't supposed to happen at all, so from my point of view it's only a positive thing that they are so annoying (during development) that the developer won't ignore reporting the issue :)
totally-not-ai commentedon Dec 5, 2026
Closing as outdated: the client engine is no longer compiled with GWT.