We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 775ec76 commit 224e79cCopy full SHA for 224e79c
lib/binding_web/prefix.js
@@ -1,5 +1,9 @@
1
var TreeSitter = function() {
2
var initPromise;
3
+ var document = typeof window == 'object'
4
+ ? {currentScript: window.document.currentScript}
5
+ : null;
6
+
7
class Parser {
8
constructor() {
9
this.initialize();
@@ -11,5 +15,5 @@ var TreeSitter = function() {
11
15
12
16
static init(moduleOptions) {
13
17
if (initPromise) return initPromise;
14
- Module = Object.assign({ }, Module, moduleOptions);
18
+ Module = Object.assign({}, Module, moduleOptions);
19
return initPromise = new Promise((resolveInitPromise) => {
0 commit comments