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

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: ADded test expectations. 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
« no previous file with comments | « lib/compiler/implementation/lib/isolate_patch.dart ('k') | lib/compiler/implementation/lib/mirrors.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8e0974f4ef0540aaf4efa6794eea9400ff0ba3d6..ac9a12a36ef54c99c2088af24be028370a51ce4b 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 UnsupportedError(reason);
}
}
checkGrowable(list, reason) {
if (JS('bool', r'!!(#.fixed$length)', list)) {
- throw new UnsupportedOperationException(reason);
+ throw new UnsupportedError(reason);
}
}
@@ -1048,7 +1048,7 @@ abstract class Dynamic_ {
*/
class Null {
factory Null() {
- throw new UnsupportedOperationException('new Null()');
+ throw new UnsupportedError('new Null()');
}
}
« no previous file with comments | « lib/compiler/implementation/lib/isolate_patch.dart ('k') | lib/compiler/implementation/lib/mirrors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698