Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Unified Diff: dart/sdk/lib/_internal/lib/js_primitives.dart

Issue 204483002: Add 'breakpoint' similar to 'debugger' from JavaScript. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: dart/sdk/lib/_internal/lib/js_primitives.dart
diff --git a/dart/sdk/lib/_internal/lib/js_primitives.dart b/dart/sdk/lib/_internal/lib/js_primitives.dart
index 3315040636019394590ae862bc595a16975ce4a6..c898abb6c86fc2a0534798c9d808f9ae5941bb25 100644
--- a/dart/sdk/lib/_internal/lib/js_primitives.dart
+++ b/dart/sdk/lib/_internal/lib/js_primitives.dart
@@ -48,3 +48,7 @@ void printString(String string) {
// avoid using Dart [:throw:] and Dart [toString].
JS('void', 'throw "Unable to print message: " + String(#)', string);
}
+
+void breakpoint() {
+ JS('void', 'debugger');
+}

Powered by Google App Engine
This is Rietveld 408576698