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

Unified Diff: test/codegen_expected/destructuring.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/async_helper.js ('k') | test/codegen_expected/expect.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen_expected/destructuring.js
diff --git a/test/codegen_expected/destructuring.js b/test/codegen_expected/destructuring.js
index 4365000fe3b2d689e089733969013998d28ee83c..e9365d30653d60ef5286624292908d2e9cf50b74 100644
--- a/test/codegen_expected/destructuring.js
+++ b/test/codegen_expected/destructuring.js
@@ -1,6 +1,4 @@
-dart_library.library('destructuring', null, /* Imports */[
- 'dart_sdk'
-], function load__destructuring(exports, dart_sdk) {
+define(['dart_sdk'], function(dart_sdk) {
'use strict';
const core = dart_sdk.core;
const dart = dart_sdk.dart;
@@ -86,6 +84,8 @@ dart_library.library('destructuring', null, /* Imports */[
};
dart.fn(src__varargs.spread, dynamicTodynamic());
// Exports:
- exports.destructuring = destructuring;
- exports.src__varargs = src__varargs;
+ return {
+ destructuring: destructuring,
+ src__varargs: src__varargs
+ };
});
« no previous file with comments | « test/codegen_expected/async_helper.js ('k') | test/codegen_expected/expect.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698