Skip to content

Commit

Permalink
No longer rely on joo_global_object
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <sora@morimoto.io>
  • Loading branch information
smorimoto committed Dec 26, 2024
1 parent 50560f1 commit a569182
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 15 deletions.
17 changes: 6 additions & 11 deletions src-bindings/node/node_stub.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
joo_global_object.constants = require("node:constants");

joo_global_object.fs = require("node:fs/promises");

joo_global_object.child_process = require("node:child_process");

joo_global_object.path = require("node:path");

joo_global_object.os = require("node:os");

joo_global_object.net = require("node:net");
globalThis.child_process = require("node:child_process");
globalThis.constants = require("node:constants");
globalThis.fs = require("node:fs/promises");
globalThis.net = require("node:net");
globalThis.os = require("node:os");
globalThis.path = require("node:path");
4 changes: 2 additions & 2 deletions src-bindings/polka/polka_stub.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
joo_global_object.polka = require("polka");
joo_global_object.sirv = require("sirv");
globalThis.polka = require("polka");
globalThis.sirv = require("sirv");
2 changes: 1 addition & 1 deletion src-bindings/vscode/vscode_stub.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
joo_global_object.vscode = require("vscode");
globalThis.vscode = require("vscode");
Original file line number Diff line number Diff line change
@@ -1 +1 @@
joo_global_object.vscode_languageclient = require("vscode-languageclient");
globalThis.vscode_languageclient = require("vscode-languageclient");

0 comments on commit a569182

Please sign in to comment.