Skip to content

Commit

Permalink
deps: update QuickJS-ng
Browse files Browse the repository at this point in the history
  • Loading branch information
saghul committed Nov 24, 2023
1 parent b3536f8 commit 393cf80
Show file tree
Hide file tree
Showing 39 changed files with 39,545 additions and 39,621 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
echo "::set-env name=CXX::clang++"
fi
- name: Build it
run: make
run: make VERBOSE=1
- name: Test it
run: make test
- name: Test it (advanced)
Expand All @@ -87,7 +87,7 @@ jobs:
with:
node-version: 16
- name: Build it
run: make
run: make VERBOSE=1
- name: Test it
run: make test
- name: Test it (advanced)
Expand All @@ -112,7 +112,7 @@ jobs:
with:
node-version: 16
- name: Build it
run: make
run: make VERBOSE=1
- name: Test it
run: make test
build-windows:
Expand Down Expand Up @@ -148,6 +148,6 @@ jobs:
ninja:p
libffi:p
- name: Build it
run: make
run: make VERBOSE=1
- name: Test it
run: make test
1 change: 0 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"js-sha3": "^0.8.0",
"js-sha512": "^0.8.0",
"patch-package": "^6.4.7",
"queue-microtask": "^1.2.3",
"text-encoding-utf-8": "^1.0.2",
"urlpattern-polyfill": "^6.0.1",
"util": "^0.12.5",
Expand Down
16 changes: 9 additions & 7 deletions src/_sqlite3.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,9 @@ static JSValue tjs__stmt2obj(JSContext *ctx, TJSSqlite3Stmt *h) {
break;
}
case SQLITE_BLOB: {
value = TJS_NewUint8ArrayCopy(ctx,
(uint8_t *) sqlite3_column_blob(h->stmt, i),
sqlite3_column_bytes(h->stmt, i));
value = JS_NewUint8ArrayCopy(ctx,
(uint8_t *) sqlite3_column_blob(h->stmt, i),
sqlite3_column_bytes(h->stmt, i));
break;
}
default: {
Expand Down Expand Up @@ -498,14 +498,16 @@ static const JSCFunctionListEntry tjs_sqlite3_funcs[] = {
};

void tjs__mod_sqlite3_init(JSContext *ctx, JSValue ns) {
JSRuntime *rt = JS_GetRuntime(ctx);

/* Handle object */
JS_NewClassID(&tjs_sqlite3_class_id);
JS_NewClass(JS_GetRuntime(ctx), tjs_sqlite3_class_id, &tjs_sqlite3_class);
JS_NewClassID(rt, &tjs_sqlite3_class_id);
JS_NewClass(rt, tjs_sqlite3_class_id, &tjs_sqlite3_class);
JS_SetClassProto(ctx, tjs_sqlite3_class_id, JS_NULL);

/* Statement object */
JS_NewClassID(&tjs_sqlite3_stmt_class_id);
JS_NewClass(JS_GetRuntime(ctx), tjs_sqlite3_stmt_class_id, &tjs_sqlite3_stmt_class);
JS_NewClassID(rt, &tjs_sqlite3_stmt_class_id);
JS_NewClass(rt, tjs_sqlite3_stmt_class_id, &tjs_sqlite3_stmt_class);
JS_SetClassProto(ctx, tjs_sqlite3_stmt_class_id, JS_NULL);

JSValue obj = JS_NewObjectProto(ctx, JS_NULL);
Expand Down
Loading

0 comments on commit 393cf80

Please sign in to comment.