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

Unified Diff: test/codegen/expect/js/js.js

Issue 1879373004: Implement modular compilation (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/codegen/expect/html_input.html ('k') | test/codegen/expect/js/js.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/js/js.js
diff --git a/test/codegen/expect/js/js.js b/test/codegen/expect/js/js.js
index 6d56c064fe0b49046f12aee7b407d51f82b75647..03ad3e5f176006a681814d512f72c4e2a55cce60 100644
--- a/test/codegen/expect/js/js.js
+++ b/test/codegen/expect/js/js.js
@@ -1,30 +1,31 @@
-dart_library.library('js/js', null, /* Imports */[
- 'dart/_runtime',
- 'dart/js',
- 'dart/core'
-], /* Lazy imports */[
-], function(exports, dart, js, core) {
+dart_library.library('js', null, /* Imports */[
+ 'dart_sdk'
+], function(exports, dart_sdk) {
'use strict';
- let dartx = dart.dartx;
- dart.export(exports, js, ['allowInterop', 'allowInteropCaptureThis'], []);
- class JS extends core.Object {
+ const core = dart_sdk.core;
+ const js = dart_sdk.js;
+ const dart = dart_sdk.dart;
+ const dartx = dart_sdk.dartx;
+ const js$ = Object.create(null);
+ js$.JS = class JS extends core.Object {
JS(name) {
if (name === void 0) name = null;
this.name = name;
}
- }
- dart.setSignature(JS, {
- constructors: () => ({JS: [JS, [], [core.String]]})
+ };
+ dart.setSignature(js$.JS, {
+ constructors: () => ({JS: [js$.JS, [], [core.String]]})
});
- class _Anonymous extends core.Object {
+ js$._Anonymous = class _Anonymous extends core.Object {
_Anonymous() {
}
- }
- dart.setSignature(_Anonymous, {
- constructors: () => ({_Anonymous: [_Anonymous, []]})
+ };
+ dart.setSignature(js$._Anonymous, {
+ constructors: () => ({_Anonymous: [js$._Anonymous, []]})
});
- const anonymous = dart.const(new _Anonymous());
+ js$.anonymous = dart.const(new js$._Anonymous());
+ js$.allowInteropCaptureThis = js.allowInteropCaptureThis;
+ js$.allowInterop = js.allowInterop;
// Exports:
- exports.JS = JS;
- exports.anonymous = anonymous;
+ exports.js = js$;
});
« no previous file with comments | « test/codegen/expect/html_input.html ('k') | test/codegen/expect/js/js.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698