Skip to content

Commit

Permalink
fix missing exports
Browse files Browse the repository at this point in the history
  • Loading branch information
lovasoa committed Nov 28, 2023
1 parent 3da977e commit 3f51c15
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
11 changes: 5 additions & 6 deletions src/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,15 @@
UTF8ToString
stringToUTF8
lengthBytesUTF8
allocate
ALLOC_NORMAL
allocateUTF8OnStack
removeFunction
addFunction
*/

"use strict";

/** @external @const @global */ var addFunction;
/** @external @const @global */ var allocate;
/** @external @const @global */ var ALLOC_NORMAL;
/** @external @const @global */ var allocateUTF8OnStack;
/** @external @const @global */ var removeFunction;

/**
* @typedef {{Database:Database, Statement:Statement}} SqlJs
* @property {Database} Database A class that represents an SQLite database
Expand Down
8 changes: 7 additions & 1 deletion src/exported_runtime_methods.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,11 @@
"stackAlloc",
"stackSave",
"stackRestore",
"UTF8ToString"
"UTF8ToString",

"allocate",
"ALLOC_NORMAL",
"allocateUTF8OnStack",
"removeFunction",
"addFunction"
]

0 comments on commit 3f51c15

Please sign in to comment.