@@ -604,11 +604,11 @@ and gen_string_call ctx s e el =
concat ctx ", " (gen_value ctx) el;
spr ctx ")"
| "cca" ->
- spr ctx "ord(";
+ spr ctx "ord(substr(";
gen_value ctx e;
- spr ctx "{";
+ spr ctx ",";
- spr ctx "})"
+ spr ctx ",1))"
| "charCodeAt" ->
spr ctx "_hx_char_code_at(";
@@ -88,11 +88,11 @@
}
public static inline function fastCodeAt( s : String, index : Int ) : Int {
- return s.charCodeAt(index);
+ return untyped s.cca(index);
public static inline function isEOF( c : Int ) : Bool {
- return c == null;
+ return untyped __physeq__(c, 0);