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

Side by Side Diff: pkg/dev_compiler/test/codegen_expected/sunflower/sunflower.js

Issue 2804113002: DDC fix for foreign futures (Closed)
Patch Set: Optimize Created 3 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
OLDNEW
1 define(['dart_sdk'], function(dart_sdk) { 1 define(['dart_sdk'], function(dart_sdk) {
2 'use strict'; 2 'use strict';
3 const core = dart_sdk.core; 3 const core = dart_sdk.core;
4 const html = dart_sdk.html; 4 const html = dart_sdk.html;
5 const math = dart_sdk.math; 5 const math = dart_sdk.math;
6 const dart = dart_sdk.dart; 6 const dart = dart_sdk.dart;
7 const dartx = dart_sdk.dartx; 7 const dartx = dart_sdk.dartx;
8 const sunflower = Object.create(null); 8 const sunflower = Object.create(null);
9 const circle = Object.create(null); 9 const circle = Object.create(null);
10 const painter = Object.create(null); 10 const painter = Object.create(null);
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 }; 159 };
160 dart.fn(painter.querySelector, StringToElement()); 160 dart.fn(painter.querySelector, StringToElement());
161 dart.defineLazy(painter, { 161 dart.defineLazy(painter, {
162 get canvas() { 162 get canvas() {
163 return html.CanvasElement.as(painter.querySelector("#canvas")); 163 return html.CanvasElement.as(painter.querySelector("#canvas"));
164 }, 164 },
165 get context() { 165 get context() {
166 return html.CanvasRenderingContext2D.as(painter.canvas[dartx.getContext](' 2d')); 166 return html.CanvasRenderingContext2D.as(painter.canvas[dartx.getContext](' 2d'));
167 } 167 }
168 }); 168 });
169 dart.trackLibraries("sunflower", {"sunflower.dart": sunflower, "circle.dart": circle, "painter.dart": painter}, null); 169 dart.trackLibraries("sunflower", {
170 "sunflower.dart": sunflower,
171 "circle.dart": circle,
172 "painter.dart": painter
173 }, null);
170 // Exports: 174 // Exports:
171 return { 175 return {
172 sunflower: sunflower, 176 sunflower: sunflower,
173 circle: circle, 177 circle: circle,
174 painter: painter 178 painter: painter
175 }; 179 };
176 }); 180 });
177 181
178 //# sourceMappingURL=sunflower.js.map 182 //# sourceMappingURL=sunflower.js.map
OLDNEW
« no previous file with comments | « pkg/dev_compiler/test/codegen_expected/script.js ('k') | pkg/dev_compiler/test/codegen_expected/varargs.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698