Skip to content

Commit

Permalink
remove references to joo_global_object (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
hhugo authored Dec 11, 2024
1 parent 08fbb02 commit 9cde4d3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/ojs.ml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ let undefined = pure_js_expr "undefined"

external equals: t -> t -> bool = "caml_js_equals"

let global = pure_js_expr "joo_global_object"
let global = pure_js_expr "globalThis"

external new_obj: t -> t array -> t = "caml_js_new"

Expand Down
2 changes: 1 addition & 1 deletion node-test/bindings/imports.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
joo_global_object.__LIB__NODE__IMPORTS = {
globalThis.__LIB__NODE__IMPORTS = {
path: require('path'),
fs: require('fs'),
};
4 changes: 2 additions & 2 deletions node-test/test1/recursive.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ var Bar = /*#__PURE__*/function () {
return Bar;
}();

joo_global_object.Foo = Foo
joo_global_object.Bar = Bar
globalThis.Foo = Foo
globalThis.Bar = Bar

0 comments on commit 9cde4d3

Please sign in to comment.