summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-11-17 21:00:34 +0100
committerGitHub <noreply@github.com>2020-11-17 21:00:34 +0100
commitbfb6c97da433683e9403b5a8d3c8da01069dddf5 (patch)
tree6df063ddeb04cd656a1c0e4b0031171c5fd40846
parentaa15f7619a77d511c1150bf1ebe7233cdf17bda2 (diff)
parentf42284ed0721ad3a5dd1d2e8bb70f2ae3733ddde (diff)
Merge pull request #43622 from madmiraal/fix-js-missing-semi-colons
Add missing javascript semi-colons.
-rw-r--r--misc/dist/html/editor.html2
-rw-r--r--platform/javascript/native/audio.worklet.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/misc/dist/html/editor.html b/misc/dist/html/editor.html
index 27b762af15..d4234d08ac 100644
--- a/misc/dist/html/editor.html
+++ b/misc/dist/html/editor.html
@@ -320,7 +320,7 @@
throw new Error('Invalid status mode');
}
statusMode = mode;
- }
+ };
function animateStatusIndeterminate(ms) {
var i = Math.floor(ms / INDETERMINATE_STATUS_STEP_MS % 8);
diff --git a/platform/javascript/native/audio.worklet.js b/platform/javascript/native/audio.worklet.js
index 320af6189c..f91787b993 100644
--- a/platform/javascript/native/audio.worklet.js
+++ b/platform/javascript/native/audio.worklet.js
@@ -45,7 +45,7 @@ class RingBuffer {
read(output) {
const size = this.buffer.length;
- let from = 0
+ let from = 0;
let to_write = output.length;
if (this.rpos + to_write > size) {
const high = size - this.rpos;
@@ -150,7 +150,7 @@ class GodotProcessor extends AudioWorkletProcessor {
const output = outputs[0];
const chunk = output[0].length * output.length;
if (this.output_buffer.length != chunk) {
- this.output_buffer = new Float32Array(chunk)
+ this.output_buffer = new Float32Array(chunk);
}
if (this.output.data_left() >= chunk) {
this.output.read(this.output_buffer);