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

Unified Diff: lib/compiler/implementation/lib/js_helper.dart

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/compiler/implementation/lib/js_helper.dart
diff --git a/lib/compiler/implementation/lib/js_helper.dart b/lib/compiler/implementation/lib/js_helper.dart
index a961599608584f2ed9c6f2226afca6ad0a82006d..ca06ae82a8af3f9da431204c0714521cc53263a8 100644
--- a/lib/compiler/implementation/lib/js_helper.dart
+++ b/lib/compiler/implementation/lib/js_helper.dart
@@ -323,13 +323,13 @@ void indexSet$slow(var a, var index, var value) {
checkMutable(list, reason) {
if (JS('bool', r'!!(#.immutable$list)', list)) {
- throw new UnsupportedOperationException(reason);
+ throw new StateError(reason);
}
}
checkGrowable(list, reason) {
if (JS('bool', r'!!(#.fixed$length)', list)) {
- throw new UnsupportedOperationException(reason);
+ throw new StateError(reason);
}
}
@@ -1052,7 +1052,7 @@ abstract class Dynamic_ {
*/
class Null {
factory Null() {
- throw new UnsupportedOperationException('new Null()');
+ throw new StateError('new Null()');
}
}

Powered by Google App Engine
This is Rietveld 408576698