/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ // Name: String charat // Desc: // -------------------------------------------------------- include 'timetest.as' if (CONFIG::desktop) { var size = 50000; } else { var size = 1000; } var myString = ""; for(var j = 0; j < size; j++) myString += "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890 abcdefghijklmnopqrstuvwxyz1234567890"; var myStringLen = myString.length; function stringCharCodeAt(loops) { for (var i =0; i < myStringLen; i++) myString.charCodeAt(i); } timetest(stringCharCodeAt);