@@ -934,7 +934,7 @@ pub fn to_string<'gc>(
934934 )
935935 . into ( ) )
936936 } else {
937- Ok ( AvmString :: new_utf8 ( activation. gc ( ) , "Invalid Date" ) . into ( ) )
937+ Ok ( AvmString :: new_ascii_static ( activation. gc ( ) , b "Invalid Date") . into ( ) )
938938 }
939939}
940940
@@ -955,7 +955,7 @@ pub fn to_utc_string<'gc>(
955955 )
956956 . into ( ) )
957957 } else {
958- Ok ( AvmString :: new_utf8 ( activation. gc ( ) , "Invalid Date" ) . into ( ) )
958+ Ok ( AvmString :: new_ascii_static ( activation. gc ( ) , b "Invalid Date") . into ( ) )
959959 }
960960}
961961
@@ -979,7 +979,7 @@ pub fn to_locale_string<'gc>(
979979 )
980980 . into ( ) )
981981 } else {
982- Ok ( AvmString :: new_utf8 ( activation. gc ( ) , "Invalid Date" ) . into ( ) )
982+ Ok ( AvmString :: new_ascii_static ( activation. gc ( ) , b "Invalid Date") . into ( ) )
983983 }
984984}
985985
@@ -999,7 +999,7 @@ pub fn to_time_string<'gc>(
999999 {
10001000 Ok ( AvmString :: new_utf8 ( activation. gc ( ) , date. format ( "%T GMT%z" ) . to_string ( ) ) . into ( ) )
10011001 } else {
1002- Ok ( AvmString :: new_utf8 ( activation. gc ( ) , "Invalid Date" ) . into ( ) )
1002+ Ok ( AvmString :: new_ascii_static ( activation. gc ( ) , b "Invalid Date") . into ( ) )
10031003 }
10041004}
10051005
@@ -1019,7 +1019,7 @@ pub fn to_locale_time_string<'gc>(
10191019 {
10201020 Ok ( AvmString :: new_utf8 ( activation. gc ( ) , date. format ( "%T %p" ) . to_string ( ) ) . into ( ) )
10211021 } else {
1022- Ok ( AvmString :: new_utf8 ( activation. gc ( ) , "Invalid Date" ) . into ( ) )
1022+ Ok ( AvmString :: new_ascii_static ( activation. gc ( ) , b "Invalid Date") . into ( ) )
10231023 }
10241024}
10251025
@@ -1039,7 +1039,7 @@ pub fn to_date_string<'gc>(
10391039 {
10401040 Ok ( AvmString :: new_utf8 ( activation. gc ( ) , date. format ( "%a %b %-d %-Y" ) . to_string ( ) ) . into ( ) )
10411041 } else {
1042- Ok ( AvmString :: new_utf8 ( activation. gc ( ) , "Invalid Date" ) . into ( ) )
1042+ Ok ( AvmString :: new_ascii_static ( activation. gc ( ) , b "Invalid Date") . into ( ) )
10431043 }
10441044}
10451045
0 commit comments