1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Rename 'static-string' argument adapter to 'string:static'. Replace JS unit tests which were lost via editing a generated copy of tester1.js instead of the original tester1.c-pp.js input file.

FossilOrigin-Name: 9d81d51d5a255b42f8416da850c992a9e4c8eebc940e0702a9262cfcaa6d7b2f
This commit is contained in:
stephan
2022-12-05 11:54:13 +00:00
parent 0adef09374
commit cf8f0d2046
5 changed files with 34 additions and 14 deletions

View File

@ -45,7 +45,7 @@ self.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
);
/**
The 'static-string' argument adapter treats its argument as
The 'string:static' argument adapter treats its argument as
either...
- WASM pointer: assumed to be a long-lived C-string which gets
@ -66,7 +66,7 @@ self.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
need it to.
*/
wasm.xWrap.argAdapter(
'static-string',
'string:static',
function(v){
if(wasm.isPtr(v)) return v;
v = ''+v;