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

Unified Diff: lib/runtime/dart/core.js

Issue 1122883002: Do not suppress implicit constructors that need a super call. (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « lib/runtime/dart/convert.js ('k') | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/core.js
diff --git a/lib/runtime/dart/core.js b/lib/runtime/dart/core.js
index e8aca91215771c4b2d4173bd71cc5cdc4cc6358c..7bbb0a3257301df662ade045adbfa1af7a9f88c4 100644
--- a/lib/runtime/dart/core.js
+++ b/lib/runtime/dart/core.js
@@ -559,10 +559,21 @@ var core;
return _js_helper.Primitives.extractStackTrace(this);
}
}
- class AssertionError extends Error {}
+ class AssertionError extends Error {
+ AssertionError() {
+ super.Error();
+ }
+ }
class TypeError extends AssertionError {}
- class CastError extends Error {}
+ class CastError extends Error {
+ CastError() {
+ super.Error();
+ }
+ }
class NullThrownError extends Error {
+ NullThrownError() {
+ super.Error();
+ }
toString() {
return "Throw of null.";
}
« no previous file with comments | « lib/runtime/dart/convert.js ('k') | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698