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

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

Issue 1893293003: Fix for node modules (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Add TODO and regen 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/language-all.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/node_modules.js
diff --git a/test/codegen/expect/node_modules.js b/test/codegen/expect/node_modules.js
index ad9a93a7c160f02945911772460eb8a1bcb003db..b033f460f9c88fef3e9a28547e56fd46686481de 100644
--- a/test/codegen/expect/node_modules.js
+++ b/test/codegen/expect/node_modules.js
@@ -1 +1,49 @@
-'use strict';
+(function() {
+ 'use strict';
+ const dart_sdk = require('dart_sdk');
+ const core = dart_sdk.core;
+ const dart = dart_sdk.dart;
+ const dartx = dart_sdk.dartx;
+ const node_modules = Object.create(null);
+ node_modules.Callback = dart.typedef('Callback', () => dart.functionType(dart.void, [], {i: core.int}));
+ node_modules.A = class A extends core.Object {};
+ node_modules._A = class _A extends core.Object {};
+ node_modules.B$ = dart.generic(T => {
+ class B extends core.Object {}
+ return B;
+ });
+ node_modules.B = node_modules.B$();
+ node_modules._B$ = dart.generic(T => {
+ class _B extends core.Object {}
+ return _B;
+ });
+ node_modules._B = node_modules._B$();
+ node_modules.f = function() {
+ };
+ dart.fn(node_modules.f);
+ node_modules._f = function() {
+ };
+ dart.fn(node_modules._f);
+ node_modules.constant = "abc";
+ node_modules.finalConstant = "abc";
+ dart.defineLazy(node_modules, {
+ get lazy() {
+ return dart.fn(() => {
+ core.print('lazy');
+ return "abc";
+ }, core.String, [])();
+ }
+ });
+ node_modules.mutable = "abc";
+ dart.defineLazy(node_modules, {
+ get lazyMutable() {
+ return dart.fn(() => {
+ core.print('lazyMutable');
+ return "abc";
+ }, core.String, [])();
+ },
+ set lazyMutable(_) {}
+ });
+ // Exports:
+ exports.node_modules = node_modules;
+})();
« no previous file with comments | « test/codegen/expect/language-all.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698