Subj : JS arrays To : netscape.public.mozilla.jseng From : "LNK2005" Date : Fri Apr 18 2003 04:23 pm I'm trying to use a custom JS Array (JS_DefineObject() with an empty array as prototype) in an app that embeds SpiderMonkey. The problem is, I want to make sure that each element in the array is an object of a certain class. When the user resize the array, null values are put into the new slots, but I want them to contain new instances of some other class instead. Also, the user shouldn't be able to assign any sort of elements to the slots. Any ideas how to do this? Is there some way to be notified when the array is resized and/or when a slot is assigned? .