Skip to content

Commit f1fd537

Browse files
typo
1 parent 840b0da commit f1fd537

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modules/encoding/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
})

0 commit comments

Comments
 (0)