Skip to content

Commit

Permalink
Reuse isolate main
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkme committed Oct 29, 2024
1 parent 966335e commit c9124f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/embedded/js/executable.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

import 'package:stream_channel/stream_channel.dart';

import '../compilation_dispatcher.dart';
import '../isolate_dispatcher.dart';
import '../isolate_main.dart';
import '../options.dart';
import '../util/length_delimited_transformer.dart';
import 'io.dart';
Expand All @@ -22,7 +22,7 @@ void main(List<String> args) {
}).listen();
} else {
var port = workerData! as MessagePort;
CompilationDispatcher(JSSyncReceivePort(port), JSSendPort(port)).listen();
isolateMain(JSSyncReceivePort(port), JSSendPort(port));
}
}
}

0 comments on commit c9124f8

Please sign in to comment.