OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 library leg_apiimpl; | 5 library leg_apiimpl; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import '../compiler.dart' as api; | 9 import '../compiler.dart' as api; |
10 import 'dart2jslib.dart' as leg; | 10 import 'dart2jslib.dart' as leg; |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 } | 349 } |
350 | 350 |
351 void diagnoseCrashInUserCode(String message, exception, stackTrace) { | 351 void diagnoseCrashInUserCode(String message, exception, stackTrace) { |
352 hasCrashed = true; | 352 hasCrashed = true; |
353 print('$message: ${tryToString(exception)}'); | 353 print('$message: ${tryToString(exception)}'); |
354 print(tryToString(stackTrace)); | 354 print(tryToString(stackTrace)); |
355 } | 355 } |
356 | 356 |
357 fromEnvironment(String name) => environment[name]; | 357 fromEnvironment(String name) => environment[name]; |
358 } | 358 } |
OLD | NEW |