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

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

Issue 2249233002: fix #626, add AMD module format and make it default (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: merged Created 4 years, 3 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 | « test/codegen_expected/script.js ('k') | test/codegen_expected/sunflower/sunflower.js.map » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 dart_library.library('sunflower', null, /* Imports */[ 1 define(['dart_sdk'], function(dart_sdk) {
2 'dart_sdk'
3 ], function load__sunflower(exports, dart_sdk) {
4 'use strict'; 2 'use strict';
5 const core = dart_sdk.core; 3 const core = dart_sdk.core;
6 const html = dart_sdk.html; 4 const html = dart_sdk.html;
7 const math = dart_sdk.math; 5 const math = dart_sdk.math;
8 const dart = dart_sdk.dart; 6 const dart = dart_sdk.dart;
9 const dartx = dart_sdk.dartx; 7 const dartx = dart_sdk.dartx;
10 const sunflower = Object.create(null); 8 const sunflower = Object.create(null);
11 const circle = Object.create(null); 9 const circle = Object.create(null);
12 const painter = Object.create(null); 10 const painter = Object.create(null);
13 let StringToElement = () => (StringToElement = dart.constFn(dart.definiteFunct ionType(html.Element, [core.String])))(); 11 let StringToElement = () => (StringToElement = dart.constFn(dart.definiteFunct ionType(html.Element, [core.String])))();
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 get canvas() { 115 get canvas() {
118 return html.CanvasElement.as(painter.querySelector("#canvas")); 116 return html.CanvasElement.as(painter.querySelector("#canvas"));
119 } 117 }
120 }); 118 });
121 dart.defineLazy(painter, { 119 dart.defineLazy(painter, {
122 get context() { 120 get context() {
123 return html.CanvasRenderingContext2D.as(painter.canvas[dartx.getContext](' 2d')); 121 return html.CanvasRenderingContext2D.as(painter.canvas[dartx.getContext](' 2d'));
124 } 122 }
125 }); 123 });
126 // Exports: 124 // Exports:
127 exports.sunflower = sunflower; 125 return {
128 exports.circle = circle; 126 sunflower: sunflower,
129 exports.painter = painter; 127 circle: circle,
128 painter: painter
129 };
130 }); 130 });
131 131
132 //# sourceMappingURL=sunflower.js.map 132 //# sourceMappingURL=/Users/jmesserly/src/dev_compiler/test/codegen_expected/sun flower/sunflower.js.map
OLDNEW
« no previous file with comments | « test/codegen_expected/script.js ('k') | test/codegen_expected/sunflower/sunflower.js.map » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698