File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ pub(crate) fn create_base64_proxy(_realm: &QuickJsRealmAdapter) -> JsProxy {
7575 . static_method ( "encodeSync" , |_runtime, realm, args| {
7676 if args. is_empty ( ) {
7777 Err ( JsError :: new_str (
78- "encode expects a single type array or string arg" ,
78+ "encodeSync expects a single type array or string arg" ,
7979 ) )
8080 } else if args[ 0 ] . is_typed_array ( ) {
8181 let bytes = realm. copy_typed_array_buffer ( & args[ 0 ] ) ?;
@@ -91,7 +91,7 @@ pub(crate) fn create_base64_proxy(_realm: &QuickJsRealmAdapter) -> JsProxy {
9191 realm. create_string ( encoded. as_str ( ) )
9292 } else {
9393 Err ( JsError :: new_str (
94- "encode expects a single type array or string arg" ,
94+ "encodeSync expects a single type array or string arg" ,
9595 ) )
9696 }
9797 } )
You can’t perform that action at this time.
0 commit comments