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

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

Issue 973433003: Initial cut for a development server (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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 fieldtest; 1 var fieldtest;
2 (function(fieldtest) { 2 (function(fieldtest) {
3 'use strict'; 3 'use strict';
4 class A extends dart.Object { 4 class A extends dart.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 dart.Object { 10 class B extends dart.Object {
(...skipping 21 matching lines...) Expand all
32 return a.x; 32 return a.x;
33 } 33 }
34 // Function compute: () → int 34 // Function compute: () → int
35 function compute() { 35 function compute() {
36 return 123; 36 return 123;
37 } 37 }
38 dart.defineLazyProperties(fieldtest, { 38 dart.defineLazyProperties(fieldtest, {
39 get y() { 39 get y() {
40 return compute() + 444; 40 return compute() + 444;
41 }, 41 },
42 set y() {} 42 set y(_) {}
43 }); 43 });
44 dart.copyProperties(fieldtest, { 44 dart.copyProperties(fieldtest, {
45 get q() { 45 get q() {
46 return core.String['+'](core.String['+']('life, ', 'the universe '), 'and everything'); 46 return core.String['+'](core.String['+']('life, ', 'the universe '), 'and everything');
47 }, 47 },
48 get z() { 48 get z() {
49 return 42; 49 return 42;
50 }, 50 },
51 set z(value) { 51 set z(value) {
52 fieldtest.y = dart.as(value, core.int); 52 fieldtest.y = dart.as(value, core.int);
(...skipping 12 matching lines...) Expand all
65 fieldtest.B$ = B$; 65 fieldtest.B$ = B$;
66 fieldtest.foo = foo; 66 fieldtest.foo = foo;
67 fieldtest.bar = bar; 67 fieldtest.bar = bar;
68 fieldtest.baz = baz; 68 fieldtest.baz = baz;
69 fieldtest.compute = compute; 69 fieldtest.compute = compute;
70 fieldtest.q = q; 70 fieldtest.q = q;
71 fieldtest.z = z; 71 fieldtest.z = z;
72 fieldtest.z = z; 72 fieldtest.z = z;
73 fieldtest.main = main; 73 fieldtest.main = main;
74 })(fieldtest || (fieldtest = {})); 74 })(fieldtest || (fieldtest = {}));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698