Skip to content

Asserts in client module are compiled as debugger calls #2386

Not planned

Description

@alvarezguille

When reproducing #2385 you can notice that if you have dev tools open then js execution is stopped as there is a call debugger; call.

Activity

  1. Legioth commented on Sep 13, 2017

    @Legioth
    Member

    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.

  2. alvarezguille commented on Sep 13, 2017

    @alvarezguille
    ContributorAuthor

    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.

  3. Legioth commented on Sep 14, 2017

    @Legioth
    Member

    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 :)

  4. added this to the Candidates milestone on Oct 8, 2018
  5. totally-not-ai commented on Dec 5, 2026

    @totally-not-ai
    Contributor

    Closing as outdated: the client engine is no longer compiled with GWT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions