File tree Expand file tree Collapse file tree 4 files changed +22
-3
lines changed
fixtures/_testSound/example/hello_world Expand file tree Collapse file tree 4 files changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,16 @@ Future<List<Property>> visibleVariables({
60
60
final objectId = scope.object.objectId;
61
61
if (objectId != null ) {
62
62
final properties = await inspector.getProperties (objectId);
63
+ for (final property in properties) {
64
+ if (property.name == '_\$ 35wc2\$ 35formal' ) {
65
+ final newProperty = Property ({
66
+ 'name' : '_' ,
67
+ 'value' : property.value,
68
+ });
69
+ properties.remove (property);
70
+ properties.add (newProperty);
71
+ }
72
+ }
63
73
allProperties.addAll (properties);
64
74
}
65
75
}
Original file line number Diff line number Diff line change 1
- // Copyright (c) 2019 , the Dart project authors. Please see the AUTHORS file
1
+ // Copyright (c) 2025 , the Dart project authors. Please see the AUTHORS file
2
2
// for details. All rights reserved. Use of this source code is governed by a
3
3
// BSD-style license that can be found in the LICENSE file.
4
4
Original file line number Diff line number Diff line change @@ -739,10 +739,18 @@ void runTests({
739
739
for (final scriptRef in scripts.scripts! ) {
740
740
final script =
741
741
await service.getObject (isolate.id! , scriptRef.id! ) as Script ;
742
- final serverPath = DartUri (script.uri! , 'hello_world/' ).serverPath;
742
+ var serverPath = DartUri (script.uri! , 'hello_world/' ).serverPath;
743
+ if (serverPath.startsWith ('hello_world/packages/' )) {
744
+ serverPath = serverPath.replaceFirst ('hello_world/' , '' );
745
+ }
743
746
final result = await http
744
747
.get (Uri .parse ('http://localhost:${context .port }/$serverPath ' ));
745
- expect (script.source, result.body);
748
+ // TODO: Figure out if we can encode the sript as utf8 and avoid this
749
+ final body =
750
+ (moduleFormat == ModuleFormat .ddc && canaryFeatures == true )
751
+ ? utf8.decode (result.body.codeUnits)
752
+ : result.body;
753
+ expect (script.source, body);
746
754
expect (scriptRef.uri, endsWith ('.dart' ));
747
755
expect (script.tokenPosTable, isNotEmpty);
748
756
}
Original file line number Diff line number Diff line change 1
1
< html >
2
2
3
3
< head >
4
+ < meta charset ='utf-8 '>
4
5
< script defer src ="main.dart.js "> </ script >
5
6
</ head >
6
7
You can’t perform that action at this time.
0 commit comments