Opened 15 years ago

Closed 15 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: [email protected]
Blocked By: Blocking:


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 15 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.