Opened 12 years ago

Closed 12 years ago

#3410 closed defect (wontfix)

dojo.lang.inArray({ a: 1, b: 2, c: 3}, "b") causes infinite loop

Reported by: guest Owned by: anonymous
Priority: high Milestone:
Component: General Version: 0.4.2
Keywords: Cc: rhys@…
Blocked By: Blocking:

Description

Invoking dojo.lang.inArray(...) with an Object instead of an Array in the first position causes an infinite loop in 0.4.3.

Granted, it's not the intended use of the function. Just odd though that it locks up a browser.

Change History (1)

comment:1 Changed 12 years ago by Adam Peller

Resolution: wontfix
Status: newclosed

inArray was not ported. Use dojo.some in 0.9+

Note: See TracTickets for help on using tickets.