File tree Expand file tree Collapse file tree 3 files changed +4
-13
lines changed Expand file tree Collapse file tree 3 files changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -31,12 +31,6 @@ bool get isVmJitConfiguration => _configuration.compiler == Compiler.dartk;
31
31
32
32
bool get isVmAotConfiguration => _configuration.compiler == Compiler .dartkp;
33
33
34
- bool get isVmDwarfConfiguration =>
35
- _configuration.vmOptions.contains ('--dwarf_stack_traces' );
36
-
37
- bool get isVmObfuscateConfiguration =>
38
- _configuration.vmOptions.contains ('--obfuscate' );
39
-
40
34
bool get isVmConfiguration => isVmJitConfiguration || isVmAotConfiguration;
41
35
42
36
bool get isWebConfiguration =>
Original file line number Diff line number Diff line change 6
6
// Regression test for https://github.com/dart-lang/sdk/issues/53519
7
7
8
8
import 'package:expect/expect.dart' ;
9
- import 'package:expect/config.dart' ;
10
9
11
10
String destructure (Map <String , dynamic > map) {
12
11
final {'hello' : world, 'count' : count} = map;
13
12
return 'Hello $world , count: $count ' ;
14
13
}
15
14
16
15
main () {
17
- // Stringification of stack traces is only valid in non-obfuscated & non-dwarf
18
- // mode.
19
- if (isVmObfuscateConfiguration || isVmDwarfConfiguration) return ;
20
-
21
16
try {
22
17
destructure ({
23
18
'hello' : 'world' ,
@@ -26,7 +21,7 @@ main() {
26
21
} catch (e, s) {
27
22
print (s);
28
23
// Expect that the stack trace contains an entry for the destructure
29
- // function at line 12 .
30
- Expect .isTrue (s.toString ().contains (RegExp (r'destructure \(.*:12 (:3)?\)' )));
24
+ // function at line 11 .
25
+ Expect .isTrue (s.toString ().contains (RegExp (r'destructure \(.*:11 (:3)?\)' )));
31
26
}
32
27
}
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ package/scenarios/invalid/non_existent_packages_file_test: CompileTimeError
16
16
17
17
[ $builder_tag == dwarf ]
18
18
io/socket_connect_stacktrace_test: SkipByDesign # Assumes stacktrace can be inspected directly, without decoding
19
+ regress_53519_test.dart: SkipByDesign # Relies on symbolic stack traces.
19
20
stack_trace/full1_test: SkipByDesign # Relies on symbolic stack traces.
20
21
stack_trace/full2_test: SkipByDesign # Relies on symbolic stack traces.
21
22
stack_trace/full3_test: SkipByDesign # Relies on symbolic stack traces.
@@ -38,6 +39,7 @@ io/socket_source_address_test: SkipByDesign
38
39
39
40
[ $builder_tag == obfuscated ]
40
41
no_such_method_error_with_invocation_test: SkipByDesign # Checks the member names in the NSM error message.
42
+ regress_53519_test.dart: SkipByDesign # Relies on symbolic stack traces.
41
43
42
44
[ $compiler == app_jitk ]
43
45
io/socket_sigpipe_test: SkipByDesign # Spawns server process using Platform.executable
You can’t perform that action at this time.
0 commit comments