Skip to content

Commit f07eee1

Browse files
committed
Remove assignation to the global this
The remained from versions before 1.0 and was not compatible with strict mode Fixes #311
1 parent 255533a commit f07eee1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/api.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* @module SqlJs
2222
*/
2323
// Wait for preRun to run, and then finish our initialization
24-
Module["onRuntimeInitialized"] = (function onRuntimeInitialized() {
24+
Module["onRuntimeInitialized"] = function onRuntimeInitialized() {
2525
"use strict";
2626

2727
// Declare toplevel variables
@@ -958,6 +958,4 @@ Module["onRuntimeInitialized"] = (function onRuntimeInitialized() {
958958

959959
// export Database to Module
960960
Module.Database = Database;
961-
// export SQL to global-namespace
962-
this["SQL"] = { Database: Database, };
963-
}).bind(this);
961+
};

0 commit comments

Comments
 (0)