rem: for ( var mag = 1; Math.pow(16,mag) <= n ; mag++ ) { ; 
add: for ( var mag = 1; Math.pow(16,mag) <= n ; mag++ ) { ; }  for ( index = 0, mag -= 1; mag > 0; index++, mag-- ) { hex[index] = Math.floor( n / Math.pow(16,mag) ); n -= Math.pow(16,mag) * Math.floor( n/Math.pow(16,mag) ); }  hex[hex.length] = n % 16;  var string ="";  for ( var index = 0 ; index < hex.length ; index++ ) { switch ( hex[index] ) { case 10: string += "A"; break; case 11: string += "B"; break; case 12: string += "C"; break; case 13: string += "D"; break; case 14: string += "E"; break; case 15: string += "F"; break; default: string += hex[index]; 
context: function ToHexString( n ) {    var hex = new Array();    for ( var mag = 1; Math.pow(16,mag) <= n ; mag++ ) {        ;    }    for ( index = 0, mag -= 1; mag > 0; index++, mag-- ) {        hex[index] = Math.floor( n / Math.pow(16,mag) );        n -= Math.pow(16,mag) * Math.floor( n/Math.pow(16,mag) );    }    hex[hex.length] = n % 16;    var string ="";    for ( var index = 0 ; index < hex.length ; index++ ) {        switch ( hex[index] ) {            case 10:                string += "A";                break;            case 11:                string += "B";                break;            case 12:                string += "C";                break;            case 13:                string += "D";                break;            case 14:                string += "E";                break;            case 15:                string += "F";                break;            default:                string += hex[index];        }    }    if ( string.length == 1 ) {        string = "0" + string;    }    return string;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/f5797aeb2410e2259028142b87595fe71f03e531/15.1.2.5-2.js/clean/js/tests/ecma/GlobalObject/15.1.2.5-2.js