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

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

Issue 1324693004: Fixes for Angular (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Reformat Created 5 years, 3 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 | « no previous file | lib/src/checker/resolver.dart » ('j') | lib/src/checker/resolver.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/js.js
diff --git a/lib/runtime/dart/js.js b/lib/runtime/dart/js.js
index 6f5620aa17a3e808560d37171f3c3772aa0f7923..c9124c970b8c0f022df85fef0191275be70c336c 100644
--- a/lib/runtime/dart/js.js
+++ b/lib/runtime/dart/js.js
@@ -356,7 +356,7 @@ dart_library.library('dart/js', null, /* Imports */[
} else if (o instanceof Date) {
let ms = o.getTime();
return new core.DateTime.fromMillisecondsSinceEpoch(ms);
- } else if (dart.is(o, _DartObject)) {
+ } else if (dart.is(o, _DartObject) && dart.jsobject != dart.realRuntimeType(o)) {
return dart.dload(o, _dartObj);
} else {
return _putIfAbsent(exports._dartProxies, o, _wrapToDart);
« no previous file with comments | « no previous file | lib/src/checker/resolver.dart » ('j') | lib/src/checker/resolver.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698