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

Unified Diff: lib/html/templates/html/dart2js/impl_MouseEvent.darttemplate

Issue 11235054: Removed IllegalAccessException and UnsupportedOperationException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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: lib/html/templates/html/dart2js/impl_MouseEvent.darttemplate
diff --git a/lib/html/templates/html/dart2js/impl_MouseEvent.darttemplate b/lib/html/templates/html/dart2js/impl_MouseEvent.darttemplate
index 5d0485c56dc228e32d5812baebace6d97435748d..3ac62f29fd188bba59746aa5f25a73abc0a6c762 100644
--- a/lib/html/templates/html/dart2js/impl_MouseEvent.darttemplate
+++ b/lib/html/templates/html/dart2js/impl_MouseEvent.darttemplate
@@ -12,7 +12,7 @@ $!MEMBERS
// Firefox does not support offsetX.
var target = this.target;
if (!(target is Element)) {
- throw const UnsupportedOperationException(
+ throw new StateError(
'offsetX is only supported on elements');
}
return this.clientX - this.target.getBoundingClientRect().left;
@@ -26,7 +26,7 @@ $!MEMBERS
// Firefox does not support offsetY.
var target = this.target;
if (!(target is Element)) {
- throw const UnsupportedOperationException(
+ throw new StateError(
'offsetY is only supported on elements');
}
return this.clientY - this.target.getBoundingClientRect().top;

Powered by Google App Engine
This is Rietveld 408576698