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

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

Issue 1095683005: fix super ctor logic (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: merge Created 5 years, 8 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
« no previous file with comments | « lib/src/codegen/js_codegen.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 var fieldtest; 1 var fieldtest;
2 (function(exports) { 2 (function(exports) {
3 'use strict'; 3 'use strict';
4 class A extends core.Object { 4 class A extends core.Object {
5 A() { 5 A() {
6 this.x = 42; 6 this.x = 42;
7 } 7 }
8 } 8 }
9 let B$ = dart.generic(function(T) { 9 let B$ = dart.generic(function(T) {
10 class B extends core.Object { 10 class B extends core.Object {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 }); 54 });
55 class BaseWithGetter extends core.Object { 55 class BaseWithGetter extends core.Object {
56 get foo() { 56 get foo() {
57 return 1; 57 return 1;
58 } 58 }
59 } 59 }
60 class Derived extends BaseWithGetter { 60 class Derived extends BaseWithGetter {
61 Derived() { 61 Derived() {
62 this.foo = 2; 62 this.foo = 2;
63 this.bar = 3; 63 this.bar = 3;
64 super.BaseWithGetter();
65 } 64 }
66 } 65 }
67 dart.virtualField(Derived, 'foo'); 66 dart.virtualField(Derived, 'foo');
68 // Function main: () → void 67 // Function main: () → void
69 function main() { 68 function main() {
70 let a = new A(); 69 let a = new A();
71 foo(a); 70 foo(a);
72 bar(a); 71 bar(a);
73 core.print(baz(a)); 72 core.print(baz(a));
74 } 73 }
75 // Exports: 74 // Exports:
76 exports.A = A; 75 exports.A = A;
77 exports.B$ = B$; 76 exports.B$ = B$;
78 exports.B = B; 77 exports.B = B;
79 exports.foo = foo; 78 exports.foo = foo;
80 exports.bar = bar; 79 exports.bar = bar;
81 exports.baz = baz; 80 exports.baz = baz;
82 exports.compute = compute; 81 exports.compute = compute;
83 exports.BaseWithGetter = BaseWithGetter; 82 exports.BaseWithGetter = BaseWithGetter;
84 exports.Derived = Derived; 83 exports.Derived = Derived;
85 exports.main = main; 84 exports.main = main;
86 })(fieldtest || (fieldtest = {})); 85 })(fieldtest || (fieldtest = {}));
OLDNEW
« no previous file with comments | « lib/src/codegen/js_codegen.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698