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

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

Issue 16549004: Add type arguments to constants. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adjust test status. 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: sdk/lib/_internal/lib/js_rti.dart
diff --git a/sdk/lib/_internal/lib/js_rti.dart b/sdk/lib/_internal/lib/js_rti.dart
index 0cd37e1cd1031abe633b22be37ac8a73cf60b5a9..4d28483262af5ecffe65f350c6d5829937c421cd 100644
--- a/sdk/lib/_internal/lib/js_rti.dart
+++ b/sdk/lib/_internal/lib/js_rti.dart
@@ -8,6 +8,7 @@ setRuntimeTypeInfo(target, typeInfo) {
assert(typeInfo == null || typeInfo is JSArray);
// We have to check for null because factories may return null.
if (target != null) JS('var', r'#.$builtinTypeInfo = #', target, typeInfo);
+ return target;
ngeoffray 2013/06/17 09:15:03 Why this change?
karlklose 2013/06/19 15:29:05 I use the pattern $.constant = setRuntimeTypeInf
}
getRuntimeTypeInfo(target) {

Powered by Google App Engine
This is Rietveld 408576698