We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d134ad4 commit a0fc440Copy full SHA for a0fc440
lib/src/embedded/js/executable.dart
@@ -13,15 +13,15 @@ import 'sync_receive_port.dart';
13
import 'worker_threads.dart';
14
15
void main(List<String> args) {
16
- if (parseOptions(args)) {
17
- if (isMainThread) {
+ if (isMainThread) {
+ if (parseOptions(args)) {
18
WorkerDispatcher(StreamChannel.withGuarantees(stdin, stdout,
19
allowSinkErrors: false)
20
.transform(lengthDelimited))
21
.listen();
22
- } else {
23
- var port = workerData! as MessagePort;
24
- CompilationDispatcher(JSSyncReceivePort(port), JSSendPort(port)).listen();
25
}
+ } else {
+ var port = workerData! as MessagePort;
+ CompilationDispatcher(JSSyncReceivePort(port), JSSendPort(port)).listen();
26
27
0 commit comments