1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

Remove some dead JS code and some extraneous debug output from test code.

FossilOrigin-Name: 6e73770a7f3845055e0130012d844c32c4a1bfdb87e8379c161e1a266a808143
This commit is contained in:
stephan
2025-07-06 15:36:28 +00:00
parent 787f4c3f09
commit 240319decd
4 changed files with 13 additions and 17 deletions

View File

@ -429,7 +429,6 @@ globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
- `vfs`: the VFS fname - `vfs`: the VFS fname
//#if enable-see //#if enable-see
SEE-capable builds optionally support ONE of the following SEE-capable builds optionally support ONE of the following
additional options: additional options:
@ -455,7 +454,6 @@ globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
is supplied and the database is encrypted, execution of the is supplied and the database is encrypted, execution of the
post-initialization SQL will fail, causing the constructor to post-initialization SQL will fail, causing the constructor to
throw. throw.
//#endif enable-see //#endif enable-see
The `filename` and `vfs` arguments may be either JS strings or The `filename` and `vfs` arguments may be either JS strings or
@ -483,8 +481,8 @@ globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
/** /**
Internal-use enum for mapping JS types to DB-bindable types. Internal-use enum for mapping JS types to DB-bindable types.
These do not (and need not) line up with the SQLITE_type These do not (and need not) line up with the SQLITE_type
values. All values in this enum must be truthy and distinct values. All values in this enum must be truthy and (mostly)
but they need not be numbers. distinct but they need not be numbers.
*/ */
const BindTypes = { const BindTypes = {
null: 1, null: 1,
@ -493,7 +491,6 @@ globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
boolean: 4, boolean: 4,
blob: 5 blob: 5
}; };
BindTypes['undefined'] == BindTypes.null;
if(wasm.bigIntEnabled){ if(wasm.bigIntEnabled){
BindTypes.bigint = BindTypes.number; BindTypes.bigint = BindTypes.number;
} }
@ -1589,8 +1586,7 @@ globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
case BindTypes.string: case BindTypes.string:
return t; return t;
case BindTypes.bigint: case BindTypes.bigint:
if(wasm.bigIntEnabled) return t; return wasm.bigIntEnabled ? t : undefined;
/* else fall through */
default: default:
return util.isBindableTypedArray(v) ? BindTypes.blob : undefined; return util.isBindableTypedArray(v) ? BindTypes.blob : undefined;
} }

View File

@ -1218,9 +1218,9 @@ globalThis.sqlite3InitModule = sqlite3InitModule;
demonstrate that the wrappers for this.db created by this demonstrate that the wrappers for this.db created by this
function do not interfere with downstream tests, e.g. by function do not interfere with downstream tests, e.g. by
closing this.db.pointer. */ closing this.db.pointer. */
sqlite3.config.debug("Proxying",this.db); //sqlite3.config.debug("Proxying",this.db);
let dw = sqlite3.oo1.DB.wrapHandle(this.db); let dw = sqlite3.oo1.DB.wrapHandle(this.db);
sqlite3.config.debug('dw',dw); //sqlite3.config.debug('dw',dw);
T.assert( dw, '!!dw' ) T.assert( dw, '!!dw' )
.assert( dw instanceof sqlite3.oo1.DB, 'dw is-a oo1.DB' ) .assert( dw instanceof sqlite3.oo1.DB, 'dw is-a oo1.DB' )
.assert( dw.pointer, 'dw.pointer' ) .assert( dw.pointer, 'dw.pointer' )

View File

@ -1,5 +1,5 @@
C JS\sdoc\sadditions. C Remove\ssome\sdead\sJS\scode\sand\ssome\sextraneous\sdebug\soutput\sfrom\stest\scode.
D 2025-07-06T15:13:06.902 D 2025-07-06T15:36:28.567
F .fossil-settings/binary-glob 61195414528fb3ea9693577e1980230d78a1f8b0a54c78cf1b9b24d0a409ed6a x F .fossil-settings/binary-glob 61195414528fb3ea9693577e1980230d78a1f8b0a54c78cf1b9b24d0a409ed6a x
F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1 F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1
F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea
@ -641,7 +641,7 @@ F ext/wasm/api/post-js-header.js 53740d824e5d9027eb1e6fd59e216abbd2136740ce260ea
F ext/wasm/api/pre-js.c-pp.js a614a2c82b12c4d96d8e3ba77330329efc53c4d56a8a7e60ade900f341866cfb F ext/wasm/api/pre-js.c-pp.js a614a2c82b12c4d96d8e3ba77330329efc53c4d56a8a7e60ade900f341866cfb
F ext/wasm/api/sqlite3-api-cleanup.js 3ac1786e461ada63033143be8c3b00b26b939540661f3e839515bb92f2e35359 F ext/wasm/api/sqlite3-api-cleanup.js 3ac1786e461ada63033143be8c3b00b26b939540661f3e839515bb92f2e35359
F ext/wasm/api/sqlite3-api-glue.c-pp.js 0b76510f3650053bac67ca8947cb6ab9d050ad2218118a2e7796dd37be832ffa F ext/wasm/api/sqlite3-api-glue.c-pp.js 0b76510f3650053bac67ca8947cb6ab9d050ad2218118a2e7796dd37be832ffa
F ext/wasm/api/sqlite3-api-oo1.c-pp.js dc3b30cefa93e6dd9f2b827e31acacbfc2acd522d5ca4d46e977dacc4261398f F ext/wasm/api/sqlite3-api-oo1.c-pp.js 33203352e067d3dbb569c5ec3c247b356f61a8d320bf8551fdf18ff25c0ff862
F ext/wasm/api/sqlite3-api-prologue.js 8708570165f5b4bce9a78ccd91bc9ddf8735970ac1c4d659e36c9a7d9a644bb4 F ext/wasm/api/sqlite3-api-prologue.js 8708570165f5b4bce9a78ccd91bc9ddf8735970ac1c4d659e36c9a7d9a644bb4
F ext/wasm/api/sqlite3-api-worker1.c-pp.js f646a65257973b8c4481f8a6a216370b85644f23e64b126e7ae113570587c0ab F ext/wasm/api/sqlite3-api-worker1.c-pp.js f646a65257973b8c4481f8a6a216370b85644f23e64b126e7ae113570587c0ab
F ext/wasm/api/sqlite3-license-version-header.js 0c807a421f0187e778dc1078f10d2994b915123c1223fe752b60afdcd1263f89 F ext/wasm/api/sqlite3-license-version-header.js 0c807a421f0187e778dc1078f10d2994b915123c1223fe752b60afdcd1263f89
@ -698,7 +698,7 @@ F ext/wasm/test-opfs-vfs.html 1f2d672f3f3fce810dfd48a8d56914aba22e45c6834e262555
F ext/wasm/test-opfs-vfs.js 1618670e466f424aa289859fe0ec8ded223e42e9e69b5c851f809baaaca1a00c F ext/wasm/test-opfs-vfs.js 1618670e466f424aa289859fe0ec8ded223e42e9e69b5c851f809baaaca1a00c
F ext/wasm/tester1-worker.html ebc4b820a128963afce328ecf63ab200bd923309eb939f4110510ab449e9814c F ext/wasm/tester1-worker.html ebc4b820a128963afce328ecf63ab200bd923309eb939f4110510ab449e9814c
F ext/wasm/tester1.c-pp.html 1c1bc78b858af2019e663b1a31e76657b73dc24bede28ca92fbe917c3a972af2 F ext/wasm/tester1.c-pp.html 1c1bc78b858af2019e663b1a31e76657b73dc24bede28ca92fbe917c3a972af2
F ext/wasm/tester1.c-pp.js e7176b2bc1228cf9a87833be7e53e20cb82dec2f104525f5cdd6cb1a53998ad6 F ext/wasm/tester1.c-pp.js b99d18fe8803215664a3b53af451d11e2573682a2c8973bcd28ce574c497393b
F ext/wasm/tests/opfs/concurrency/index.html 657578a6e9ce1e9b8be951549ed93a6a471f4520a99e5b545928668f4285fb5e F ext/wasm/tests/opfs/concurrency/index.html 657578a6e9ce1e9b8be951549ed93a6a471f4520a99e5b545928668f4285fb5e
F ext/wasm/tests/opfs/concurrency/test.js d08889a5bb6e61937d0b8cbb78c9efbefbf65ad09f510589c779b7cc6a803a88 F ext/wasm/tests/opfs/concurrency/test.js d08889a5bb6e61937d0b8cbb78c9efbefbf65ad09f510589c779b7cc6a803a88
F ext/wasm/tests/opfs/concurrency/worker.js 0a8c1a3e6ebb38aabbee24f122693f1fb29d599948915c76906681bb7da1d3d2 F ext/wasm/tests/opfs/concurrency/worker.js 0a8c1a3e6ebb38aabbee24f122693f1fb29d599948915c76906681bb7da1d3d2
@ -2208,8 +2208,8 @@ F tool/version-info.c 3b36468a90faf1bbd59c65fd0eb66522d9f941eedd364fabccd7227350
F tool/warnings-clang.sh bbf6a1e685e534c92ec2bfba5b1745f34fb6f0bc2a362850723a9ee87c1b31a7 F tool/warnings-clang.sh bbf6a1e685e534c92ec2bfba5b1745f34fb6f0bc2a362850723a9ee87c1b31a7
F tool/warnings.sh 1ad0169b022b280bcaaf94a7fa231591be96b514230ab5c98fbf15cd7df842dd F tool/warnings.sh 1ad0169b022b280bcaaf94a7fa231591be96b514230ab5c98fbf15cd7df842dd
F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f
P 1227543b87c3320d6b80e0f61b88ea53b68779966a0295c4d6a1db6369c48207 P 7933505f0c1d25c6ee81ead8edc5ea649a84ec0582321bcf5ed4a17232750f90
R cef3ddc9e77c9bf23d0de246f8a430aa R 7f815f9b4c7a2aabd4a38289c5be858a
U stephan U stephan
Z 86c577d4430c4b03afa5e02f4812dc59 Z d14be01d18ce30e04a958bfca48cc223
# Remove this line to create a well-formed Fossil manifest. # Remove this line to create a well-formed Fossil manifest.

View File

@ -1 +1 @@
7933505f0c1d25c6ee81ead8edc5ea649a84ec0582321bcf5ed4a17232750f90 6e73770a7f3845055e0130012d844c32c4a1bfdb87e8379c161e1a266a808143