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

Unified Diff: pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart

Issue 834133002: dart2js OldEmitter: Small cleanups in output. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added check for using Function.apply. Created 5 years, 11 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_emitter/old_emitter/reflection_data_parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart
diff --git a/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart b/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart
index 3fa2c8f1683675b33c93a84dfdf1b49a4b13622c..95ea5d973d6a6062230a42196ffc443c6c052dfd 100644
--- a/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart
+++ b/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart
@@ -1018,12 +1018,10 @@ class OldEmitter implements Emitter {
jsAst.FunctionDeclaration decl = js.statement('''
function init() {
$isolateProperties = Object.create(null);
- (function(){
- #allClasses = Object.create(null);
- #interceptorsByTag = Object.create(null);
- #leafTags = Object.create(null);
- #finishedClasses = Object.create(null);
- })();
+ #allClasses = Object.create(null);
+ #interceptorsByTag = Object.create(null);
+ #leafTags = Object.create(null);
+ #finishedClasses = Object.create(null);
if (#needsLazyInitializer) {
$lazyInitializerName = function (prototype, staticName, fieldName,
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_emitter/old_emitter/reflection_data_parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698