Files
dmcallis 65a0592776 Initial source code drop
Source code drop for the Actionscript virtual machine in the Adobe
Flash Player for December 2013
2013-12-02 16:04:04 -08:00

24 lines
720 B
ActionScript

/* 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);