michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: const Ci = Components.interfaces; michael@0: const Cr = Components.results; michael@0: const Cc = Components.classes; michael@0: const CC = Components.Constructor; michael@0: michael@0: var MutableArray = CC("@mozilla.org/array;1", "nsIMutableArray"); michael@0: var SupportsString = CC("@mozilla.org/supports-string;1", "nsISupportsString"); michael@0: michael@0: function create_n_element_array(n) michael@0: { michael@0: var arr = new MutableArray(); michael@0: for (let i=0; i