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

Unified Diff: lib/compiler/implementation/js_backend/native_emitter.dart

Issue 10911211: Runtime support for the new parameter specification. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
Index: lib/compiler/implementation/js_backend/native_emitter.dart
===================================================================
--- lib/compiler/implementation/js_backend/native_emitter.dart (revision 12238)
+++ lib/compiler/implementation/js_backend/native_emitter.dart (working copy)
@@ -412,8 +412,8 @@
// In order to have the toString method on every native class,
// we must patch the JS Object prototype with a helper method.
- String toStringName = backend.namer.instanceMethodName(
- null, const SourceString('toString'), 0);
+ String toStringName = backend.namer.instanceMethodNameByArity(
ahe 2012/09/13 14:29:10 Maybe rename to publicInstanceMethodByArity?
ngeoffray 2012/09/17 12:21:01 Done.
+ const SourceString('toString'), 0);
objectProperties[toStringName] =
'function() { return $toStringHelperName(this); }';

Powered by Google App Engine
This is Rietveld 408576698