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

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

Issue 11348133: Add JSNull, JSBool and JSFunction, and move toString into the new interceptor scheme. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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/compiler/implementation/lib/js_helper.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/lib/js_helper.dart (revision 15139)
+++ sdk/lib/_internal/compiler/implementation/lib/js_helper.dart (working copy)
@@ -944,7 +944,8 @@
// exception occurred.
var type = JS('var', r'#.type', ex);
var name = JS('var', r'#.arguments ? #.arguments[0] : ""', ex, ex);
- if (type == 'property_not_function' ||
+ if (message.contains('JSNull') ||
karlklose 2012/11/20 14:09:12 Where does this come from?
ngeoffray 2012/11/20 14:15:17 Take the call foo.forEach(...). Since forEach is i
+ type == 'property_not_function' ||
type == 'called_non_callable' ||
type == 'non_object_property_call' ||
type == 'non_object_property_load') {

Powered by Google App Engine
This is Rietveld 408576698