Index: runtime/tests/vm/dart/optimized_stacktrace_line_test.dart |
diff --git a/runtime/tests/vm/dart/optimized_stacktrace_line_test.dart b/runtime/tests/vm/dart/optimized_stacktrace_line_test.dart |
index cc7157d577ec957a941443ac16bcffa151c3f9c5..abdbefa252b45f78164baa968413b3ec8334fac9 100644 |
--- a/runtime/tests/vm/dart/optimized_stacktrace_line_test.dart |
+++ b/runtime/tests/vm/dart/optimized_stacktrace_line_test.dart |
@@ -8,7 +8,7 @@ import "package:expect/expect.dart"; |
foo(x) => bar(x); |
bar(x) { |
- if (x == null) throw 42; // throw at position 11:18 |
+ if (x == null) throw 42; // throw at position 11:18 |
return x + 1; |
} |
@@ -25,7 +25,7 @@ test1() { |
} |
// Optimized. |
- for (var i=0; i<10000; i++) foo(42); |
+ for (var i = 0; i < 10000; i++) foo(42); |
try { |
foo(null); |
Expect.fail("Unreachable"); |
@@ -37,14 +37,13 @@ test1() { |
} |
} |
- |
// (2) Test checked mode exceptions. |
maximus(x) => moritz(x); |
moritz(x) { |
- if (x == 333) return 42 ? 0 : 1; // Throws in checked mode. |
- if (x == 777) { |
- bool b = x; // Throws in checked mode. |
+ if (x == 333) return 42 ? 0 : 1; // Throws in checked mode. |
+ if (x == 777) { |
+ bool b = x; // Throws in checked mode. |
return b; |
} |
@@ -52,7 +51,7 @@ moritz(x) { |
} |
test2() { |
- for (var i=0; i<100000; i++) maximus(42); |
+ for (var i = 0; i < 100000; i++) maximus(42); |
try { |
maximus(333); |
} catch (e, stacktrace) { |