From e1b72e194376606df15acb4f6f943805299767ef Mon Sep 17 00:00:00 2001 From: Marcel Admiraal Date: Tue, 17 Nov 2020 18:18:46 +0000 Subject: [PATCH] Add missing javascript semi-colons. (cherry picked from commit f42284ed0721ad3a5dd1d2e8bb70f2ae3733ddde) --- misc/dist/html/editor.html | 2 +- platform/javascript/native/audio.worklet.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/misc/dist/html/editor.html b/misc/dist/html/editor.html index 5b6ad2df65a..705383f0b3f 100644 --- a/misc/dist/html/editor.html +++ b/misc/dist/html/editor.html @@ -322,7 +322,7 @@ throw new Error('Invalid status mode'); } statusMode = mode; - } + }; function animateStatusIndeterminate(ms) { diff --git a/platform/javascript/native/audio.worklet.js b/platform/javascript/native/audio.worklet.js index ad7957e45c1..992ae47fadd 100644 --- a/platform/javascript/native/audio.worklet.js +++ b/platform/javascript/native/audio.worklet.js @@ -46,7 +46,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; @@ -151,7 +151,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);