From 33a266f4bae7b53ad12bd79293bcc1f11ae6d407 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Mon, 17 Nov 2014 05:03:46 +0100 Subject: [swfinterp] Implement charCodeAt --- test/swftests/StringCharCodeAt.as | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/swftests/StringCharCodeAt.as (limited to 'test/swftests') diff --git a/test/swftests/StringCharCodeAt.as b/test/swftests/StringCharCodeAt.as new file mode 100644 index 000000000..c20d74d65 --- /dev/null +++ b/test/swftests/StringCharCodeAt.as @@ -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(); + } +} +} -- cgit v1.2.3