Skip to content

Commit 912b999

Browse files
committed
fixup! sqlite: support ArrayBuffer and TypedArray in StatementSync
1 parent 21c555b commit 912b999

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/node_sqlite.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -930,8 +930,7 @@ bool StatementSync::BindParams(const FunctionCallbackInfo<Value>& args) {
930930
int anon_idx = 1;
931931
int anon_start = 0;
932932

933-
if (args[0]->IsObject() && !args[0]->IsUint8Array() &&
934-
!args[0]->IsTypedArray() && !args[0]->IsArrayBuffer() &&
933+
if (args[0]->IsObject() && !args[0]->IsArrayBufferView() &&
935934
!args[0]->IsDataView()) {
936935
Local<Object> obj = args[0].As<Object>();
937936
Local<Context> context = obj->GetIsolate()->GetCurrentContext();

0 commit comments

Comments
 (0)