Invalid default route crashes Chrome #1579

Closed
jrwilliams opened this Issue Jan 31, 2017 · 1 comment

Comments

Projects
None yet
3 participants
@jrwilliams

I accidentally introduced a typo in my default route:

m.route(root, '/home', { // Note case issue
    '/Home': Home,
    '/List': TodoList
  });

This causes Chrome (Version 55.0.2883.95) to lock up. Firefox behaves better, but CPU usage goes very high. A quick profile showed that setTimeout was being called constantly.

I've made this gist to illustrate the issue: https://gist.github.com/jrwilliams/3a5decaeea440dbf7ae4f3654845ae8a
Run that using http-server or however you like, and you should witness the lock up.

@lhorie

This comment has been minimized.

Show comment
Hide comment
@lhorie

lhorie Feb 4, 2017

Member

Fixed in origin/next

Member

lhorie commented Feb 4, 2017

Fixed in origin/next

@lhorie lhorie closed this Feb 4, 2017

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