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

Unified Diff: lib/runtime/_rtti.js

Issue 1291623005: Skip type checks on native JavaScriptObjects (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Skip type checks on JSOs Created 5 years, 4 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 | « lib/runtime/_operations.js ('k') | lib/runtime/_types.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/_rtti.js
diff --git a/lib/runtime/_rtti.js b/lib/runtime/_rtti.js
index 28b963b411468fb70803195aca21087ce2decea9..b39c6275634d9a709df7ac05704e0429c64d33ba 100644
--- a/lib/runtime/_rtti.js
+++ b/lib/runtime/_rtti.js
@@ -137,7 +137,9 @@ dart_library.library('dart_runtime/_rtti', null, /* Imports */[
if (result) return result;
result = obj.constructor;
if (result == Function) {
- return getFunctionType(obj);
+ // An undecorated Function should have come from
+ // JavaScript. Treat as untyped.
+ return types.jsobject;
}
return result;
}
« no previous file with comments | « lib/runtime/_operations.js ('k') | lib/runtime/_types.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698