diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-09-09 17:05:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-09 17:05:05 +0200 |
commit | 7c3f411cb1ac866eee3351717d6a9bab03227fbb (patch) | |
tree | 7d70bfd9908d4de4542c09663b8a77b3041edc0d | |
parent | 36e2c39f0ce3ef050003e5e97f4ec7fa5fa03aab (diff) | |
parent | 64095245eeb2b6fa60f74f3bf3063933481a2243 (diff) |
Merge pull request #41914 from madmiraal/add-missing-semicolons
Explicitly add implicitly added JavaScript semicolons.
-rw-r--r-- | misc/dist/html/full-size.html | 2 | ||||
-rw-r--r-- | platform/javascript/engine/engine.js | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/misc/dist/html/full-size.html b/misc/dist/html/full-size.html index 435013cb5e..be25ce4839 100644 --- a/misc/dist/html/full-size.html +++ b/misc/dist/html/full-size.html @@ -201,7 +201,7 @@ $GODOT_HEAD_INCLUDE throw new Error('Invalid status mode'); } statusMode = mode; - } + }; function animateStatusIndeterminate(ms) { diff --git a/platform/javascript/engine/engine.js b/platform/javascript/engine/engine.js index d709422abb..2630812814 100644 --- a/platform/javascript/engine/engine.js +++ b/platform/javascript/engine/engine.js @@ -121,7 +121,7 @@ Function('return this')()['Engine'] = (function() { if (me.onExit) me.onExit(code); me.rtenv = null; - } + }; return new Promise(function(resolve, reject) { preloader.preloadedFiles.forEach(function(file) { me.rtenv['copyToFS'](file.path, file.buffer); @@ -207,18 +207,18 @@ Function('return this')()['Engine'] = (function() { if (this.rtenv) this.rtenv.onExecute = onExecute; this.onExecute = onExecute; - } + }; Engine.prototype.setOnExit = function(onExit) { this.onExit = onExit; - } + }; Engine.prototype.copyToFS = function(path, buffer) { if (this.rtenv == null) { throw new Error("Engine must be inited before copying files"); } this.rtenv['copyToFS'](path, buffer); - } + }; // Closure compiler exported engine methods. /** @export */ |