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

Unified Diff: lib/runtime/dart/mirrors.js

Issue 1233553005: Fixes #254 - Better stacktrace support (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Added utilities to help debugging Created 5 years, 5 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/runtime/dart/mirrors.js
diff --git a/lib/runtime/dart/mirrors.js b/lib/runtime/dart/mirrors.js
index 511e97b67ae8d4da417a0f784e953b549d802c4a..3670bdd2f7fcc0387989f9e03ac00f90820c695c 100644
--- a/lib/runtime/dart/mirrors.js
+++ b/lib/runtime/dart/mirrors.js
@@ -37,11 +37,11 @@ dart_library.library('dart/mirrors', null, /* Imports */[
dart.fn(reflect, () => dart.definiteFunctionType(InstanceMirror, [core.Object]));
function reflectClass(key) {
if (!dart.is(key, core.Type) || dart.equals(key, dart.dynamic)) {
- throw new core.ArgumentError(`${key} does not denote a class`);
+ dart.throw(new core.ArgumentError(`${key} does not denote a class`));
}
let tm = reflectType(key);
if (!dart.is(tm, ClassMirror)) {
- throw new core.ArgumentError(`${key} does not denote a class`);
+ dart.throw(new core.ArgumentError(`${key} does not denote a class`));
}
return dart.as(dart.as(tm, ClassMirror).originalDeclaration, ClassMirror);
}

Powered by Google App Engine
This is Rietveld 408576698