[swfinterp] Implement charCodeAt
This commit is contained in:
		
							
								
								
									
										11
									
								
								test/swftests/StringCharCodeAt.as
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								test/swftests/StringCharCodeAt.as
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
			
		||||
// input: []
 | 
			
		||||
// output: 9897
 | 
			
		||||
 | 
			
		||||
package {
 | 
			
		||||
public class StringCharCodeAt {
 | 
			
		||||
    public static function main():int{
 | 
			
		||||
        var s:String = "abc";
 | 
			
		||||
        return s.charCodeAt(1) * 100 + s.charCodeAt();
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user