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

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

Issue 18054021: Fixing up DOM constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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: sdk/lib/_internal/lib/interceptors.dart
diff --git a/sdk/lib/_internal/lib/interceptors.dart b/sdk/lib/_internal/lib/interceptors.dart
index bcfef4387920b3b1aea9ded66d3a32388017a9c4..1650d14ec42bf36ac2b102c090de03397e74c205 100644
--- a/sdk/lib/_internal/lib/interceptors.dart
+++ b/sdk/lib/_internal/lib/interceptors.dart
@@ -295,7 +295,10 @@ var interceptedNames;
* allows dummy receiver optimization.
*/
abstract class Interceptor {
- const Interceptor();
+ Interceptor() {
+ throw new UnsupportedError(
+ "Generative constructors not supported on native types.");
+ }
bool operator ==(other) => identical(this, other);
« no previous file with comments | « no previous file | sdk/lib/html/dart2js/html_dart2js.dart » ('j') | sdk/lib/html/html_common/html_common_dart2js.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698