@willbooster/web-tree-sitter 1.0.37 → 1.0.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/web-tree-sitter",
3
- "version": "1.0.37",
3
+ "version": "1.0.39",
4
4
  "description": "Tree-sitter bindings for the web",
5
5
  "repository": {
6
6
  "type": "git",
@@ -917,7 +917,7 @@ var require_web_tree_sitter = __commonJS({
917
917
  return (async () => {
918
918
  var instance2;
919
919
  if (binary instanceof WebAssembly.Module) {
920
- instance2 = new WebAssembly.Instance(binary, info);
920
+ instance2 = await WebAssembly.instantiate(binary, info);
921
921
  } else {
922
922
  ({ module: binary, instance: instance2 } = await WebAssembly.instantiate(binary, info));
923
923
  }