Skip to content

Commit 090e73f

Browse files
committed
made arguments parameter optional
1 parent 6be2d0a commit 090e73f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

dwds/lib/src/debugging/inspector.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,11 +358,13 @@ class AppInspector implements AppInspectorInterface {
358358

359359
/// Evaluates the specified top-level method [methodName] within the library
360360
/// identified by [libraryUri] using the Dart Development Compiler (DDC)
361-
/// library bundle strategy with the given [arguments].
361+
/// library bundle strategy with the given optional [arguments].
362362
Future<RemoteObject> _evaluateLibraryMethodWithDdcLibraryBundle(
363363
String libraryUri,
364364
String methodName,
365-
List<RemoteObject> arguments,
365+
[
366+
List<RemoteObject> arguments = const [],
367+
]
366368
) {
367369
final expression = globalToolConfiguration.loadStrategy.dartRuntimeDebugger
368370
.callLibraryMethodJsExpression(libraryUri, methodName);
@@ -404,7 +406,6 @@ class AppInspector implements AppInspectorInterface {
404406
? _evaluateLibraryMethodWithDdcLibraryBundle(
405407
libraryUri,
406408
methodName,
407-
[],
408409
)
409410
: _evaluateLibraryVariable(
410411
libraryUri,

0 commit comments

Comments
 (0)