Skip to content

Commit 946df02

Browse files
author
Anna Gringauze
authored
Enable expression evaluation in the debugger for web (flutter#17324)
1 parent 4affba4 commit 946df02

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

flutter_frontend_server/lib/server.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class _FlutterFrontendCompiler implements frontend.CompilerInterface {
7272
expression, definitions, typeDefinitions, libraryUri, klass, isStatic);
7373
}
7474

75-
// ignore: annotate_overrides
75+
@override
7676
Future<Null> compileExpressionToJs(
7777
String libraryUri,
7878
int line,
@@ -81,7 +81,8 @@ class _FlutterFrontendCompiler implements frontend.CompilerInterface {
8181
Map<String, String> jsFrameValues,
8282
String moduleName,
8383
String expression) {
84-
throw UnimplementedError('Compile expression to JS is not supported');
84+
return _compiler.compileExpressionToJs(libraryUri, line, column, jsModules,
85+
jsFrameValues, moduleName, expression);
8586
}
8687

8788
@override

0 commit comments

Comments
 (0)