summaryrefslogtreecommitdiff
path: root/platform/javascript/pre.js
diff options
context:
space:
mode:
authorZaven Muradyan <voithos@google.com>2018-10-14 20:55:04 -0700
committerZaven Muradyan <voithos@google.com>2018-10-15 08:56:44 -0700
commit61d5513525fa3c484cb2d277f39b971edbb605ef (patch)
tree4bf612bc1856c72a24b71bcd2f01414e86968bfb /platform/javascript/pre.js
parent451e5fd0511bc2c17a66fc73a0de9a5169109517 (diff)
Add comments to javascript wrapper parts.
The code in pre.js and engine.js is a bit confusing to see in isolation, since the files aren't valid JS files by themselves. This just adds some explanatory text to both files. Fixes #22937.
Diffstat (limited to 'platform/javascript/pre.js')
-rw-r--r--platform/javascript/pre.js3
1 files changed, 3 insertions, 0 deletions
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.