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

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

Issue 11273034: Make unmatched static call a runtime error. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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
Index: lib/compiler/implementation/lib/js_helper.dart
diff --git a/lib/compiler/implementation/lib/js_helper.dart b/lib/compiler/implementation/lib/js_helper.dart
index e5476d45799af63c012c1651b46f318d88efaabe..a6dcb6c3f606fe0e235e326d9c2bce221c8b456b 100644
--- a/lib/compiler/implementation/lib/js_helper.dart
+++ b/lib/compiler/implementation/lib/js_helper.dart
@@ -1375,8 +1375,8 @@ void assertHelper(condition) {
* Called by generated code when a method that must be statically
* resolved cannot be found.
*/
-void throwNoSuchMethod(obj, name, arguments) {
- throw new NoSuchMethodError(obj, name, arguments);
+void throwNoSuchMethod(obj, name, arguments, [expectedArgumentNames]) {
ahe 2012/10/25 13:34:04 Could you avoid making the argument optional?
+ throw new NoSuchMethodError(obj, name, arguments, expectedArgumentNames);
}
/**

Powered by Google App Engine
This is Rietveld 408576698