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

Unified 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: fix tests and other changes Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: test/codegen_expected/sunflower/sunflower.js
diff --git a/test/codegen_expected/sunflower/sunflower.js b/test/codegen_expected/sunflower/sunflower.js
index c447b631a4a1e78fba241e251a4eb12a4fbee9fc..1c6ea17bb89bd86788a63c389455043a80021b73 100644
--- a/test/codegen_expected/sunflower/sunflower.js
+++ b/test/codegen_expected/sunflower/sunflower.js
@@ -1,6 +1,4 @@
-dart_library.library('sunflower', null, /* Imports */[
- 'dart_sdk'
-], function load__sunflower(exports, dart_sdk) {
+define(['dart_sdk'], function(dart_sdk) {
'use strict';
const core = dart_sdk.core;
const html = dart_sdk.html;
@@ -124,9 +122,11 @@ dart_library.library('sunflower', null, /* Imports */[
}
});
// Exports:
- exports.sunflower = sunflower;
- exports.circle = circle;
- exports.painter = painter;
+ return {
+ sunflower: sunflower,
+ circle: circle,
+ painter: painter
+ };
});
-//# sourceMappingURL=sunflower.js.map
+//# sourceMappingURL=/Users/jmesserly/src/dev_compiler/test/codegen_expected/sunflower/sunflower.js.map

Powered by Google App Engine
This is Rietveld 408576698