Skip to content

Commit 515652f

Browse files
committed
Insert comment about _compileExpression not working
1 parent 0649d29 commit 515652f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

frontend_server_common/lib/src/frontend_server_client.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,10 @@ class ResidentCompiler {
480480
) async {
481481
_stdoutHandler.reset(suppressCompilerMessages: true, expectSources: false);
482482

483+
// This hasn't been updated for years and will not work with current
484+
// versions of Dart (anything including
485+
// https://github.com/dart-lang/sdk/commit/17781dbc3645).
486+
483487
// 'compile-expression' should be invoked after compiler has been started,
484488
// program was compiled.
485489
if (_server == null) {
@@ -488,7 +492,6 @@ class ResidentCompiler {
488492
final server = _server!;
489493

490494
final inputKey = generateV4UUID();
491-
if (1 + 1 == 2) throw 'hello #2';
492495
server.stdin.writeln('compile-expression $inputKey');
493496
server.stdin.writeln(request.expression);
494497
request.definitions.forEach(server.stdin.writeln);

0 commit comments

Comments
 (0)