Results 1 to 2 of 2

Thread: Infinite loop in Ext.Date.clearTime()

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha Premium Member
    Join Date
    Oct 2012
    Vote Rating

    Default Infinite loop in Ext.Date.clearTime()

    See also
    Not sure how the code is shared between Touch and ExtJS but it's a bug in both.

    Ext version tested:

    • Ext 4.2.2 rev

    Browser versions tested against:

    • IE9
    • FF31

    DOCTYPE tested against:
    • html

    • Describe the problem in greater detail here, summarizing the behavior.
    • Ext.Date.clearTime(new Date(NaN))
    • The code path that tries to adjust for DST difference will never break out of the loop if the Date.getDate() is NaN. This should probably check for isNaN() first and either throw an Exeption or fail silently and log a message if in dev mode.

    Steps to reproduce the problem:

    • Execute the following in any ExtJS application:
    • Ext.Date.clearTime(new Date(NaN))

    The result that was expected:
    • Maybe an Exception? or nothing?

    The result that occurs instead:
    • Browser locks up, eventually you get the slow script warning and can stop it

  2. #2
    Sencha User joel.watson's Avatar
    Join Date
    Nov 2014
    Vote Rating


    Thanks for the report! I have opened a bug in our bug tracker.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts