From 5583045dcff8d2fa2103d8a32aa034bf78b51f4f Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 3 Aug 2023 23:15:13 +0200 Subject: sqlite3 support --- qtart.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'qtart.c') diff --git a/qtart.c b/qtart.c index 1b17c1c..c670b46 100644 --- a/qtart.c +++ b/qtart.c @@ -457,12 +457,14 @@ int main(int argc, char **argv) if (!empty_run) { js_std_add_helpers(ctx, argc - optind, argv + optind); - /* make 'std' and 'os' visible to non module code */ + /* make 'std', 'os' and 'tart' visible to non module code */ if (load_std) { const char *str = "import * as std from 'std';\n" "import * as os from 'os';\n" + "import * as tart from 'tart';\n" "globalThis.std = std;\n" - "globalThis.os = os;\n"; + "globalThis.os = os;\n" + "globalThis.tart = tart;\n"; eval_buf(ctx, str, strlen(str), "", JS_EVAL_TYPE_MODULE); } -- cgit v1.2.3