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

Unified Diff: frog/lib/natives.dart

Issue 8763018: Fix NamingTest on all Frog configurations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 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: frog/lib/natives.dart
diff --git a/frog/lib/natives.dart b/frog/lib/natives.dart
index 6321634a20a8d9be1af9b0a4ee30be3a95fa21fa..174ec5416dbebdf438fcf973e6cf8e4bb136c5c8 100644
--- a/frog/lib/natives.dart
+++ b/frog/lib/natives.dart
@@ -42,7 +42,9 @@ if (e instanceof TypeError) {
return attachStack(new NullPointerException());
break;
case 'undefined_method':
- if (e.arguments[0] == 'call' || e.arguments[0] == 'apply') {
+ var mname = e.arguments[0];
+ if (typeof(mname) == 'string' && (mname.indexOf('call$') == 0
+ || mname == 'call' || mname == 'apply')) {
return attachStack(new ObjectNotClosureException());
} else {
// TODO(jmesserly): fix noSuchMethod on operators so we don't hit this

Powered by Google App Engine
This is Rietveld 408576698