You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sigurdm opened this issue
Feb 17, 2015
· 3 comments
Labels
area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.P1A high priority bug; for example, a single project is unusable or has many test failures
sigurdm
added
Type-Defect
P1
A high priority bug; for example, a single project is unusable or has many test failures
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
labels
Mar 13, 2015
area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.P1A high priority bug; for example, a single project is unusable or has many test failures
r43804
This program:
import "dart:async";
foo() async {
try {
bool firstTime = true;
while(true) {
print("a");
if (firstTime) {
try {
await new Future.value(3);
print("b");
throw "Error";
} catch(error) {
print(error);
print("c");
firstTime = false;
continue;
} finally {
print("d");
}
} else {
print("e");
return;
}
}
} finally {
print("f");
}
print("g");
}
main() async {
await foo();
}
Expected output:
a
b
Error
c
d
a
e
f
Prints:
a
b
Error
c
d
a
e
f
f
Unhandled exception:
Uncaught Error: The null object does not have a method 'complete'.
NoSuchMethodError: method not found: 'complete'
Receiver: null
Arguments: [null]
Stack Trace:
0 Object._noSuchMethod (dart:core-patch/object_patch.dart:42)
1 Object.noSuchMethod (dart:core-patch/object_patch.dart:45)
2 foo.<foo_async_body> (file:///usr/local/google/home/sigurdm/test/main.dart)
3 _asyncCatchHelper.<anonymous closure> (dart:core-patch/core_patch.dart:11)
4 _RootZone.runBinary (dart:async/zone.dart:1160)
5 _Future._propagateToListeners.handleError (dart:async/future_impl.dart:511)
6 _Future._propagateToListeners (dart:async/future_impl.dart:570)
7 _Future._completeError (dart:async/future_impl.dart:366)
8 _Future._asyncCompleteError.<anonymous closure> (dart:async/future_impl.dart:421)
9 _asyncRunCallbackLoop (dart:async/schedule_microtask.dart:41)
10 _asyncRunCallback (dart:async/schedule_microtask.dart:48)
11 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:96)
12 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:143)
0 _rootHandleUncaughtError.<anonymous closure> (dart:async/zone.dart:886)
1 _asyncRunCallbackLoop (dart:async/schedule_microtask.dart:41)
2 _asyncRunCallback (dart:async/schedule_microtask.dart:48)
3 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:96)
4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:143)
The text was updated successfully, but these errors were encountered: