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

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

Issue 11191078: Make hashCode a getter and not a method. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status file with co19 issue number. 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/js_backend/native_emitter.dart
diff --git a/lib/compiler/implementation/js_backend/native_emitter.dart b/lib/compiler/implementation/js_backend/native_emitter.dart
index d4321b28dba3a5d253e4aaa64b6a6a26220bcace..5cc2142b55564f5bbc6f76e2d0387d9635920cb2 100644
--- a/lib/compiler/implementation/js_backend/native_emitter.dart
+++ b/lib/compiler/implementation/js_backend/native_emitter.dart
@@ -447,8 +447,8 @@ function(cls, desc) {
'function() { return $toStringHelperName(this); }';
// Same as above, but for hashCode.
- String hashCodeName = backend.namer.publicInstanceMethodNameByArity(
- const SourceString('hashCode'), 0);
+ String hashCodeName = backend.namer.publicGetterName(
+ const SourceString('hashCode'));
objectProperties[hashCodeName] =
'function() { return $hashCodeHelperName(this); }';

Powered by Google App Engine
This is Rietveld 408576698