Chromium Code Reviews| 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) { |