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

Side by Side Diff: test/codegen/expect/misc.js

Issue 1133593004: fixes #131, use before define from variables to classes (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: fix static fields Created 5 years, 7 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 unified diff | Download patch
OLDNEW
1 var misc = dart.defineLibrary(misc, {}); 1 var misc = dart.defineLibrary(misc, {});
2 var core = dart.import(core); 2 var core = dart.import(core);
3 (function(exports, core) { 3 (function(exports, core) {
4 'use strict'; 4 'use strict';
5 class _Uninitialized extends core.Object {
Jennifer Messerly 2015/05/12 16:23:46 this was the repro in the bug
6 _Uninitialized() {
7 }
8 }
9 let UNINITIALIZED = dart.const(new _Uninitialized());
5 // Function main: () → dynamic 10 // Function main: () → dynamic
6 function main() { 11 function main() {
7 core.print(dart.toString(1)); 12 core.print(dart.toString(1));
8 core.print(dart.toString(1.0)); 13 core.print(dart.toString(1.0));
9 core.print(dart.toString(1.1)); 14 core.print(dart.toString(1.1));
10 } 15 }
11 // Exports: 16 // Exports:
17 exports.UNINITIALIZED = UNINITIALIZED;
12 exports.main = main; 18 exports.main = main;
13 })(misc, core); 19 })(misc, core);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698