From c61e359cc775f085d233015bb17fc587fc22bc30 Mon Sep 17 00:00:00 2001 From: Anna Gringauze Date: Wed, 25 Mar 2020 12:03:25 -0700 Subject: [PATCH] Enable expression evaluation in the debugger for web --- flutter_frontend_server/lib/server.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/flutter_frontend_server/lib/server.dart b/flutter_frontend_server/lib/server.dart index 0c50557a71ecd..da4f85a895d25 100644 --- a/flutter_frontend_server/lib/server.dart +++ b/flutter_frontend_server/lib/server.dart @@ -72,7 +72,7 @@ class _FlutterFrontendCompiler implements frontend.CompilerInterface { expression, definitions, typeDefinitions, libraryUri, klass, isStatic); } - // ignore: annotate_overrides + @override Future compileExpressionToJs( String libraryUri, int line, @@ -81,7 +81,8 @@ class _FlutterFrontendCompiler implements frontend.CompilerInterface { Map jsFrameValues, String moduleName, String expression) { - throw UnimplementedError('Compile expression to JS is not supported'); + return _compiler.compileExpressionToJs(libraryUri, line, column, jsModules, + jsFrameValues, moduleName, expression); } @override