Chromium Code Reviews| Index: lib/compiler/implementation/js_backend/emitter.dart |
| =================================================================== |
| --- lib/compiler/implementation/js_backend/emitter.dart (revision 12781) |
| +++ lib/compiler/implementation/js_backend/emitter.dart (working copy) |
| @@ -207,7 +207,10 @@ |
| $pendingClassesName = {}; |
| var finishedClasses = {}; |
| function finishClass(cls) { |
| - if (finishedClasses[cls]) return; |
| +'''/* Opera does not support 'getOwnPropertyNames'. Therefore we use |
| + hasOwnProperty instead. */''' |
| + var hasOwnProperty = Object.prototype.hasOwnProperty; |
|
Lasse Reichstein Nielsen
2012/09/25 08:30:53
indentation?
ngeoffray
2012/09/25 08:32:28
Done.
|
| + if (hasOwnProperty.call(finishedClasses, cls)) return; |
| finishedClasses[cls] = true; |
| var superclass = pendingClasses[cls]; |
| '''/* The superclass is only false (empty string) for Dart's Object class. */''' |
| @@ -225,9 +228,6 @@ |
| var newPrototype = new tmp(); |
| constructor.prototype = newPrototype; |
| newPrototype.constructor = constructor; |
| -'''/* Opera does not support 'getOwnPropertyNames'. Therefore we use |
| - hosOwnProperty instead. */''' |
| - var hasOwnProperty = Object.prototype.hasOwnProperty; |
| for (var member in prototype) { |
| if (member == '' || member == 'super') continue; |
| if (hasOwnProperty.call(prototype, member)) { |