Skip to content

Commit cd14530

Browse files
committed
fix minimifaction issues
1 parent a84969d commit cd14530

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/api.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@
5050
* @module SqlJs
5151
*/
5252
// Wait for preRun to run, and then finish our initialization
53-
Module.onRuntimeInitialized = function onRuntimeInitialized() {
53+
Module["onRuntimeInitialized"] = function onRuntimeInitialized() {
5454
// Declare toplevel variables
5555
// register, used for temporary stack values
5656
var apiTemp = stackAlloc(4);
57-
var cwrap = Module.cwrap;
57+
var cwrap = Module["cwrap"];
5858
// Null pointer
5959
var NULL = 0;
6060
// SQLite enum
@@ -433,7 +433,7 @@ Module.onRuntimeInitialized = function onRuntimeInitialized() {
433433
for (var field = 0; field < ref; field += 1) {
434434
switch (sqlite3_column_type(this.stmt, field)) {
435435
case SQLITE_INTEGER:
436-
var getfunc = config.useBigInt
436+
var getfunc = config["useBigInt"]
437437
? this.getBigInt(field)
438438
: this.getNumber(field);
439439
results1.push(getfunc);
@@ -1301,11 +1301,11 @@ Module.onRuntimeInitialized = function onRuntimeInitialized() {
13011301
aggregateFunctions
13021302
) {
13031303
// Default initializer and finalizer
1304-
var init = aggregateFunctions.init
1304+
var init = aggregateFunctions["init"]
13051305
|| function init() { return null; };
1306-
var finalize = aggregateFunctions.finalize
1306+
var finalize = aggregateFunctions["finalize"]
13071307
|| function finalize(state) { return state; };
1308-
var step = aggregateFunctions.step;
1308+
var step = aggregateFunctions["step"];
13091309

13101310
if (!step) {
13111311
throw "An aggregate function must have a step function in " + name;
@@ -1572,5 +1572,5 @@ Module.onRuntimeInitialized = function onRuntimeInitialized() {
15721572
/* eslint-enable no-self-assign */
15731573

15741574
// export Database to Module
1575-
Module.Database = Database;
1575+
Module["Database"] = Database;
15761576
};

0 commit comments

Comments
 (0)