| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import "dart:math"; | 5 import "dart:math"; |
| 6 import "dart:typed_data"; | 6 import "dart:typed_data"; |
| 7 |
| 8 // We need to pass the exception object as second parameter to the continuation. |
| 9 // See vm/ast_transformer.cc for usage. |
| 10 void _asyncCatchHelper(catchFunction, continuation) { |
| 11 catchFunction((e) => continuation(null, e)); |
| 12 } |
| OLD | NEW |