diff options
author | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2020-09-09 15:13:55 +0100 |
---|---|---|
committer | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2020-09-09 15:30:57 +0100 |
commit | 64095245eeb2b6fa60f74f3bf3063933481a2243 (patch) | |
tree | 355f9f77f7e7372408705fb1841b758688ab8eb7 /platform/javascript | |
parent | 4d34677623e2551fc72e09ffdffe0323a75db5fd (diff) |
Explicitly add implicitly added semicolons.
Diffstat (limited to 'platform/javascript')
-rw-r--r-- | platform/javascript/engine/engine.js | 8 |
1 files changed, 4 insertions, 4 deletions
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 */ |