Skip to content

Commit

Permalink
fix: use TextEncoder instead of core.encode
Browse files Browse the repository at this point in the history
  • Loading branch information
DjDeveloperr authored Jan 26, 2023
1 parent dfd83c3 commit c350fd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/statement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ export class Statement {
sqlite3_bind_text(this.#handle, i + 1, emptyStringBuffer, 0, 0),
);
} else {
const str = (Deno as any).core.encode(param);
const str = new TextEncoder().encode(param);
this.#bindRefs.add(str);
unwrap(
sqlite3_bind_text(this.#handle, i + 1, str, str.byteLength, 0),
Expand Down

0 comments on commit c350fd0

Please sign in to comment.