@ -744,28 +744,28 @@ pub fn create_constructor(global: &Value) -> Value {
let prop = Property ::default ( ) . get ( to_value ( get_string_length as NativeFunctionData ) ) ;
proto . set_prop_slice ( "length" , prop ) ;
proto . set_field_slice ( "charAt" , to_value ( char_at as NativeFunctionData ) ) ;
proto . set_field_slice ( "charCodeAt" , to_value ( char_code_at as NativeFunctionData ) ) ;
proto . set_field_slice ( "toString" , to_value ( to_string as NativeFunctionData ) ) ;
proto . set_field_slice ( "concat" , to_value ( concat as NativeFunctionData ) ) ;
proto . set_field_slice ( "repeat" , to_value ( repeat as NativeFunctionData ) ) ;
proto . set_field_slice ( "slice" , to_value ( slice as NativeFunctionData ) ) ;
proto . set_field_slice ( "startsWith" , to_value ( starts_with as NativeFunctionData ) ) ;
proto . set_field_slice ( "endsWith" , to_value ( ends_with as NativeFunctionData ) ) ;
proto . set_field_slice ( "includes" , to_value ( includes as NativeFunctionData ) ) ;
proto . set_field_slice ( "indexOf" , to_value ( index_of as NativeFunctionData ) ) ;
proto . set_field_slice ( "lastIndexOf" , to_value ( last_index_of as NativeFunctionData ) ) ;
proto . set_field_slice ( "match" , to_value ( r#match as NativeFunctionData ) ) ;
proto . set_field_slice ( "padEnd" , to_value ( pad_end as NativeFunctionData ) ) ;
proto . set_field_slice ( "padStart" , to_value ( pad_start as NativeFunctionData ) ) ;
proto . set_field_slice ( "trim" , to_value ( trim as NativeFunctionData ) ) ;
proto . set_field_slice ( "trimStart" , to_value ( trim_start as NativeFunctionData ) ) ;
proto . set_field_slice ( "toLowerCase" , to_value ( to_lowercase as NativeFunctionData ) ) ;
proto . set_field_slice ( "toUpperCase" , to_value ( to_uppercase as NativeFunctionData ) ) ;
proto . set_field_slice ( "substring" , to_value ( substring as NativeFunctionData ) ) ;
proto . set_field_slice ( "substr" , to_value ( substr as NativeFunctionData ) ) ;
proto . set_field_slice ( "valueOf" , to_value ( value_of as NativeFunctionData ) ) ;
proto . set_field_slice ( "matchAll" , to_value ( match_all as NativeFunctionData ) ) ;
make_builtin_fn ! ( char_at , named "charAt" , with length 1 , of proto ) ;
make_builtin_fn ! ( char_code_at , named "charCodeAt" , with length 1 , of proto ) ;
make_builtin_fn ! ( to_string , named "toString" , of proto ) ;
make_builtin_fn ! ( concat , named "concat" , with length 1 , of proto ) ;
make_builtin_fn ! ( repeat , named "repeat" , with length 1 , of proto ) ;
make_builtin_fn ! ( slice , named "slice" , with length 2 , of proto ) ;
make_builtin_fn ! ( starts_with , named "startsWith" , with length 1 , of proto ) ;
make_builtin_fn ! ( ends_with , named "endsWith" , with length 1 , of proto ) ;
make_builtin_fn ! ( includes , named "includes" , with length 1 , of proto ) ;
make_builtin_fn ! ( index_of , named "indexOf" , with length 1 , of proto ) ;
make_builtin_fn ! ( last_index_of , named "lastIndexOf" , with length 1 , of proto ) ;
make_builtin_fn ! ( r#match , named "match" , with length 1 , of proto ) ;
make_builtin_fn ! ( pad_end , named "padEnd" , with length 1 , of proto ) ;
make_builtin_fn ! ( pad_start , named "padStart" , with length 1 , of proto ) ;
make_builtin_fn ! ( trim , named "trim" , of proto ) ;
make_builtin_fn ! ( trim_start , named "trimStart" , of proto ) ;
make_builtin_fn ! ( to_lowercase , named "toLowerCase" , of proto ) ;
make_builtin_fn ! ( to_uppercase , named "toUpperCase" , of proto ) ;
make_builtin_fn ! ( substring , named "substring" , with length 2 , of proto ) ;
make_builtin_fn ! ( substr , named "substr" , with length 2 , of proto ) ;
make_builtin_fn ! ( value_of , named "valueOf" , of proto ) ;
make_builtin_fn ! ( match_all , named "matchAll" , with length 1 , of proto ) ;
let string = to_value ( string_constructor ) ;
proto . set_field_slice ( "constructor" , string . clone ( ) ) ;