1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-12-20 01:22:32 +03:00

Remove an extraneous loop level from the JS bootstrapping bits.

FossilOrigin-Name: 86817b4e9f011d296fb420be95269fecb54fb48a220bce84020e3af2d2c164a4
This commit is contained in:
stephan
2025-11-20 12:14:03 +00:00
parent df3fca8da4
commit 6d62ed4f87
3 changed files with 9 additions and 11 deletions

View File

@@ -975,10 +975,8 @@ globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
"entry SQLITE_WASM_DEALLOC (=="+capi.SQLITE_WASM_DEALLOC+").");
}
const __rcMap = Object.create(null);
for(const t of ['resultCodes']){
for(const e of Object.entries(wasm.ctype[t])){
__rcMap[e[1]] = e[0];
}
for(const e of Object.entries(wasm.ctype['resultCodes'])){
__rcMap[e[1]] = e[0];
}
/**
For the given integer, returns the SQLITE_xxx result code as a