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

Unified Diff: dart/sdk/lib/_internal/lib/js_helper.dart

Issue 17376005: Correctly reflect on intercepted classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Take two 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
Index: dart/sdk/lib/_internal/lib/js_helper.dart
diff --git a/dart/sdk/lib/_internal/lib/js_helper.dart b/dart/sdk/lib/_internal/lib/js_helper.dart
index cd4e627f8b9f9e0ec02109d88fd2d231417dc98d..29715d1aee1c3d417a5a7e8f5d08b4b9dac71a9e 100644
--- a/dart/sdk/lib/_internal/lib/js_helper.dart
+++ b/dart/sdk/lib/_internal/lib/js_helper.dart
@@ -566,7 +566,7 @@ class Primitives {
return JS('var', '#.apply(#, #)', jsFunction, function, arguments);
}
- static getConstructor(String className) {
+ static getConstructorOrInterceptor(String className) {
// TODO(ahe): Generalize this and improve test coverage of
// reflecting on intercepted classes.
if (JS('bool', '# == "String"', className)) return const JSString();
« no previous file with comments | « no previous file | dart/sdk/lib/_internal/lib/js_mirrors.dart » ('j') | dart/sdk/lib/_internal/lib/js_mirrors.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698