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

Unified Diff: test/codegen_expected/script.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, 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
« no previous file with comments | « test/codegen_expected/map_keys.js.map ('k') | test/codegen_expected/sunflower/sunflower.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen_expected/script.js
diff --git a/test/codegen_expected/script.js b/test/codegen_expected/script.js
index ae13313f1074df2fcea0c5a94fa36a75ae4123b8..c2b69f4a5c0a1ecf5a0b93595763566ff4020348 100644
--- a/test/codegen_expected/script.js
+++ b/test/codegen_expected/script.js
@@ -1,6 +1,4 @@
-dart_library.library('script', null, /* Imports */[
- 'dart_sdk'
-], function load__script(exports, dart_sdk) {
+define(['dart_sdk'], function(dart_sdk) {
'use strict';
const core = dart_sdk.core;
const dart = dart_sdk.dart;
@@ -15,5 +13,7 @@ dart_library.library('script', null, /* Imports */[
};
dart.fn(script.main, ListOfStringTovoid());
// Exports:
- exports.script = script;
+ return {
+ script: script
+ };
});
« no previous file with comments | « test/codegen_expected/map_keys.js.map ('k') | test/codegen_expected/sunflower/sunflower.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698