summaryrefslogtreecommitdiff
path: root/platform/javascript
diff options
context:
space:
mode:
authorMax Hilbrunner <mhilbrunner@users.noreply.github.com>2018-10-20 15:30:05 +0200
committerGitHub <noreply@github.com>2018-10-20 15:30:05 +0200
commit5bb34539e2bbd0fa0c46ff589a337eb519ced6da (patch)
treef4e57ebaf0f90023618384be55afe200b554f030 /platform/javascript
parent16b0191173242edca05813b1064de8d14c06deeb (diff)
parent61d5513525fa3c484cb2d277f39b971edbb605ef (diff)
Merge pull request #23025 from voithos/enginejs
Add comments to javascript wrapper parts.
Diffstat (limited to 'platform/javascript')
-rw-r--r--platform/javascript/engine.js3
-rw-r--r--platform/javascript/pre.js3
2 files changed, 6 insertions, 0 deletions
diff --git a/platform/javascript/engine.js b/platform/javascript/engine.js
index c3ef5bbbb5..91458eb4c3 100644
--- a/platform/javascript/engine.js
+++ b/platform/javascript/engine.js
@@ -1,3 +1,6 @@
+ // The following is concatenated with generated code, and acts as the end
+ // of a wrapper for said code. See pre.js for the other part of the
+ // wrapper.
exposedLibs['PATH'] = PATH;
exposedLibs['FS'] = FS;
return Module;
diff --git a/platform/javascript/pre.js b/platform/javascript/pre.js
index 02194bc75e..a870e676ea 100644
--- a/platform/javascript/pre.js
+++ b/platform/javascript/pre.js
@@ -1,2 +1,5 @@
var Engine = {
RuntimeEnvironment: function(Module, exposedLibs) {
+ // The above is concatenated with generated code, and acts as the start of
+ // a wrapper for said code. See engine.js for the other part of the
+ // wrapper.