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

Unified Diff: sdk/lib/_internal/compiler/implementation/lib/js_mirrors.dart

Issue 16154017: Rename RuntimeError to CyclicIntializationError, as per spec. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix bad merge in js_helper.dart 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
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/lib/js_helper.dart ('k') | sdk/lib/core/errors.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/lib/js_mirrors.dart
diff --git a/sdk/lib/_internal/compiler/implementation/lib/js_mirrors.dart b/sdk/lib/_internal/compiler/implementation/lib/js_mirrors.dart
index aaf30d7d4b78978f1f6ffaf676206507b0a6776d..5b4f36a109a42e96bd7ca63087cfeee43b00a3d7 100644
--- a/sdk/lib/_internal/compiler/implementation/lib/js_mirrors.dart
+++ b/sdk/lib/_internal/compiler/implementation/lib/js_mirrors.dart
@@ -428,7 +428,7 @@ class JsVariableMirror implements VariableMirror {
int length = descriptor.length;
var code = fieldCode(descriptor.codeUnitAt(length - 1));
if (code == 0) {
- throw new RuntimeError('Bad field descriptor: $descriptor');
+ throw new ArgumentError('Bad field descriptor: $descriptor');
ahe 2013/06/04 13:14:11 What makes you think this is an argument error?
Lasse Reichstein Nielsen 2013/06/13 08:08:57 Descriptor is an argument. It's being tested in so
ahe 2013/06/13 09:59:14 I'm sorry, I'm on a crusade against incorrect uses
}
bool hasGetter = (code & 3) != 0;
bool hasSetter = (code >> 2) != 0;
@@ -481,7 +481,7 @@ function(reflectee) {
''');
String callName = JS('String|Null', '#(#)', extractCallName, reflectee);
if (callName == null) {
- throw new RuntimeError('Cannot find callName on "$reflectee"');
+ throw new ArgumentError('Cannot find callName on "$reflectee"');
ahe 2013/06/04 13:14:11 What makes you think this is an argument error? W
Lasse Reichstein Nielsen 2013/06/13 08:08:57 True, I probably misread the code due to the inlin
ahe 2013/06/13 09:59:14 This is what StateError says it represents: "The o
}
int parameterCount = int.parse(callName.split(r'$')[1]);
if (reflectee is BoundClosure) {
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/lib/js_helper.dart ('k') | sdk/lib/core/errors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698