News for hackers. Stuff that matters.
Re:Optimizing dynamic JavaScript with inline caches by idbehold on Friday April 07, 2017 @03:58PM (#14063048)
It works just fine in Chrome's DevTools.

  > dividers[2](6)
  3
  > dividers[undefined](6, 3)
  2
Re:Optimizing dynamic JavaScript with inline caches by rndgermandude on Friday April 07, 2017 @04:10PM (#14063121)
The code uses dividers[divisor] so dividers[3](6, 3) so undefined(6,3) and that does not work
Re:Optimizing dynamic JavaScript with inline caches by idbehold on Friday April 07, 2017 @04:17PM (#14063170)
Oh, yeah the divideSomeNumbers() function doesn't work correctly. It should probably be using:

  var divider = dividers[divisor] || dividers[undefined];