From 084bbd190f7bf662a95ff82ff56187766f80d8f1 Mon Sep 17 00:00:00 2001 From: Oleksiy Golovko Date: Thu, 7 Feb 2019 13:12:41 +0100 Subject: [PATCH 1/2] minor fixes in rehack/runtime/js --- runtime/rehack/js/Array_.js | 2 +- runtime/rehack/js/List_.js | 1 + runtime/rehack/js/String_.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 runtime/rehack/js/List_.js diff --git a/runtime/rehack/js/Array_.js b/runtime/rehack/js/Array_.js index ab33b7dd..a17f663c 100644 --- a/runtime/rehack/js/Array_.js +++ b/runtime/rehack/js/Array_.js @@ -1 +1 @@ -module.exports = require('Array.js'); +module.exports = require('./Array.js'); diff --git a/runtime/rehack/js/List_.js b/runtime/rehack/js/List_.js new file mode 100644 index 00000000..de733d84 --- /dev/null +++ b/runtime/rehack/js/List_.js @@ -0,0 +1 @@ +module.exports = require('./List.js'); diff --git a/runtime/rehack/js/String_.js b/runtime/rehack/js/String_.js index 4889ddba..ccc1abfb 100644 --- a/runtime/rehack/js/String_.js +++ b/runtime/rehack/js/String_.js @@ -1 +1 @@ -module.exports = require('String.js'); +module.exports = require('./String.js'); From 043253751c1c95b9e9aab753cf840447cad89554 Mon Sep 17 00:00:00 2001 From: Oleksiy Golovko Date: Thu, 7 Feb 2019 13:26:39 +0100 Subject: [PATCH 2/2] make joo_global_object be real global --- runtime/rehack/js/runtime.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/runtime/rehack/js/runtime.js b/runtime/rehack/js/runtime.js index eab5a416..52775264 100644 --- a/runtime/rehack/js/runtime.js +++ b/runtime/rehack/js/runtime.js @@ -2,9 +2,8 @@ * Runtime * @providesModule Runtime */ -"use strict"; -let joo_global_object = global; +joo_global_object = global; var caml_oo_last_id = 0; @@ -5644,4 +5643,4 @@ caml_register_global( ); -module.exports = global.jsoo_runtime; \ No newline at end of file +module.exports = global.jsoo_runtime;