Skip to content

Commit 9635159

Browse files
committed
fixup! lib,src,test: fix tests without SQLite
1 parent 96c122f commit 9635159

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

src/node_config.cc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,6 @@ static void InitConfig(Local<Object> target,
9090
READONLY_FALSE_PROPERTY(target, "hasInspector");
9191
#endif
9292

93-
#if HAVE_SQLITE
94-
READONLY_TRUE_PROPERTY(target, "hasSQLite");
95-
#else
96-
READONLY_FALSE_PROPERTY(target, "hasSQLite");
97-
#endif
98-
9993
// configure --no-browser-globals
10094
#ifdef NODE_NO_BROWSER_GLOBALS
10195
READONLY_TRUE_PROPERTY(target, "noBrowserGlobals");

src/node_options.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() {
571571
"experimental Web Storage API",
572572
&EnvironmentOptions::webstorage,
573573
kAllowedInEnvvar,
574-
true);
574+
HAVE_SQLITE);
575575
AddAlias("--webstorage", "--experimental-webstorage");
576576
AddOption("--localstorage-file",
577577
"file used to persist localStorage data",

src/node_options.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class EnvironmentOptions : public Options {
127127
bool experimental_fetch = true;
128128
bool experimental_websocket = true;
129129
bool experimental_sqlite = true;
130-
bool webstorage = true;
130+
bool webstorage = HAVE_SQLITE;
131131
#ifndef OPENSSL_NO_QUIC
132132
bool experimental_quic = false;
133133
#endif

0 commit comments

Comments
 (0)