Merge pull request #1518 from player-03/single_threaded_async

Add virtual threads and web workers.
This commit is contained in:
player-03
2023-01-13 16:47:51 -05:00
committed by GitHub
16 changed files with 2064 additions and 535 deletions

View File

@@ -159,6 +159,10 @@ class HTML5Platform extends PlatformTarget
if (dependency.embed && StringTools.endsWith(dependency.path, ".js") && FileSystem.exists(dependency.path))
{
var script = File.getContent(dependency.path);
if (!dependency.webWorker)
{
script = 'if(typeof window != "undefined") {\n' + script + "\n}";
}
context.embeddedLibraries.push(script);
}
}