replace const keyword (legacy web engine in strict mode)

This commit is contained in:
Dmitry Lyzo 2024-03-20 23:13:35 +03:00
parent 8eb53fb5e1
commit 70d2c36739

View File

@ -10,7 +10,7 @@ var SubtitlesOctopus = function (options) {
try {
if (typeof WebAssembly === "object"
&& typeof WebAssembly.instantiate === "function") {
const module = new WebAssembly.Module(Uint8Array.of(0x0, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00));
var module = new WebAssembly.Module(Uint8Array.of(0x0, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00));
if (module instanceof WebAssembly.Module)
supportsWebAssembly = (new WebAssembly.Instance(module) instanceof WebAssembly.Instance);
}