Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 lib; | 5 import 'dart:_internal'; |
|
Ivan Posva
2015/05/08 20:45:04
Why this import?
Cutch
2015/05/08 21:22:36
Done.
| |
| 6 | 6 |
| 7 var global = 0; | 7 patch void breakHere() native "Debugger_breakHere"; |
| 8 | 8 patch void breakHereIf(bool expr) native "Debugger_breakHereIf"; |
|
Ivan Posva
2015/05/08 20:45:04
breakHere({bool if: true, String msg});
Also the
Cutch
2015/05/08 21:22:36
went with 'debugger({bool when: true, String msg})
| |
| 9 class A { | |
| 10 A() { | |
| 11 global += 10; | |
| 12 try {} catch(e) {} // no inline | |
| 13 } | |
| 14 } | |
| OLD | NEW |