Răsfoiți Sursa

Merge pull request #23025 from voithos/enginejs

Add comments to javascript wrapper parts.
Max Hilbrunner 6 ani în urmă
părinte
comite
5bb34539e2
2 a modificat fișierele cu 6 adăugiri și 0 ștergeri
  1. 3 0
      platform/javascript/engine.js
  2. 3 0
      platform/javascript/pre.js

+ 3 - 0
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;

+ 3 - 0
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.