Просмотр исходного кода

Merge pull request #41914 from madmiraal/add-missing-semicolons

Explicitly add implicitly added JavaScript semicolons.
Rémi Verschelde 5 лет назад
Родитель
Сommit
7c3f411cb1
2 измененных файлов с 5 добавлено и 5 удалено
  1. 1 1
      misc/dist/html/full-size.html
  2. 4 4
      platform/javascript/engine/engine.js

+ 1 - 1
misc/dist/html/full-size.html

@@ -201,7 +201,7 @@ $GODOT_HEAD_INCLUDE
 						throw new Error('Invalid status mode');
 				}
 				statusMode = mode;
-			}
+			};
 
 			function animateStatusIndeterminate(ms) {
 

+ 4 - 4
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 */