Skip to content

Commit 3f51c15

Browse files
committed
fix missing exports
1 parent 3da977e commit 3f51c15

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

src/api.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,15 @@
1313
UTF8ToString
1414
stringToUTF8
1515
lengthBytesUTF8
16+
allocate
17+
ALLOC_NORMAL
18+
allocateUTF8OnStack
19+
removeFunction
20+
addFunction
1621
*/
1722

1823
"use strict";
1924

20-
/** @external @const @global */ var addFunction;
21-
/** @external @const @global */ var allocate;
22-
/** @external @const @global */ var ALLOC_NORMAL;
23-
/** @external @const @global */ var allocateUTF8OnStack;
24-
/** @external @const @global */ var removeFunction;
25-
2625
/**
2726
* @typedef {{Database:Database, Statement:Statement}} SqlJs
2827
* @property {Database} Database A class that represents an SQLite database

src/exported_runtime_methods.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,11 @@
33
"stackAlloc",
44
"stackSave",
55
"stackRestore",
6-
"UTF8ToString"
6+
"UTF8ToString",
7+
8+
"allocate",
9+
"ALLOC_NORMAL",
10+
"allocateUTF8OnStack",
11+
"removeFunction",
12+
"addFunction"
713
]

0 commit comments

Comments
 (0)