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

Unified Diff: pkg/dev_compiler/lib/js/legacy/dart_sdk.js

Issue 2519873004: Set auto breakpoint at various errors (Closed)
Patch Set: Inline debugger Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
Index: pkg/dev_compiler/lib/js/legacy/dart_sdk.js
diff --git a/pkg/dev_compiler/lib/js/legacy/dart_sdk.js b/pkg/dev_compiler/lib/js/legacy/dart_sdk.js
index 09a7b16ff5cd351df7416455cd531a7661a3c007..8a6f13ef589769c5bea1c51d3067206bb46786e7 100644
--- a/pkg/dev_compiler/lib/js/legacy/dart_sdk.js
+++ b/pkg/dev_compiler/lib/js/legacy/dart_sdk.js
@@ -1421,24 +1421,31 @@ dart_library.library('dart_sdk', null, /* Imports */[
return true;
};
dart.throwCastError = function(object, actual, type) {
+ debugger;
dart.throw(new _js_helper.CastErrorImplementation(object, dart.typeName(actual), dart.typeName(type)));
};
dart.throwTypeError = function(object, actual, type) {
+ debugger;
dart.throw(new _js_helper.TypeErrorImplementation(object, dart.typeName(actual), dart.typeName(type)));
};
dart.throwStrongModeCastError = function(object, actual, type) {
+ debugger;
dart.throw(new _js_helper.StrongModeCastError(object, dart.typeName(actual), dart.typeName(type)));
};
dart.throwStrongModeTypeError = function(object, actual, type) {
+ debugger;
dart.throw(new _js_helper.StrongModeTypeError(object, dart.typeName(actual), dart.typeName(type)));
};
dart.throwUnimplementedError = function(message) {
+ debugger;
dart.throw(new core.UnimplementedError(message));
};
dart.throwAssertionError = function() {
+ debugger;
dart.throw(new core.AssertionError());
};
dart.throwNullValueError = function() {
+ debugger;
dart.throw(new core.NoSuchMethodError(null, new core.Symbol('<Unexpected Null Value>'), null, null, null));
};
dart.syncStar = function(gen, E, ...args) {
@@ -1969,9 +1976,11 @@ dart_library.library('dart_sdk', null, /* Imports */[
return Object.getOwnPropertySymbols(obj);
};
dart.throwStrongModeError = function(message) {
+ debugger;
throw new _js_helper.StrongModeErrorImplementation(message);
};
dart.throwInternalError = function(message) {
+ debugger;
throw Error(message);
};
dart.getOwnNamesAndSymbols = function(obj) {
« no previous file with comments | « pkg/dev_compiler/lib/js/es6/dart_sdk.js ('k') | pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/errors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698