Skip to content

Commit e35ac5e

Browse files
committed
WIP
1 parent 4a92ba5 commit e35ac5e

File tree

4 files changed

+345
-310
lines changed

4 files changed

+345
-310
lines changed

dwds/lib/src/debugging/dart_runtime_debugger.dart

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,4 +199,15 @@ class DartRuntimeDebugger {
199199
),
200200
);
201201
}
202+
203+
String getVariableJsExpression(
204+
String libraryName,
205+
String url,
206+
String variable,
207+
) {
208+
return _generateJsExpression(
209+
"${_loadStrategy.loadModuleSnippet}('dart_sdk').dart.getModuleLibraries('$libraryName')['$url']['$variable'];",
210+
'dartDevEmbedder.dart.getModuleLibraries("$libraryName")["$url"]["$variable"]',
211+
);
212+
}
202213
}

0 commit comments

Comments
 (0)