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

Side by Side Diff: pkg/dev_compiler/test/codegen_expected/node_modules.js

Issue 2701963002: Enable DDC output to run on v8/d8 using ES6 modules (Closed)
Patch Set: Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 (function() { 1 'use strict';
2 'use strict'; 2 const dart_sdk = require('dart_sdk');
3 const dart_sdk = require('dart_sdk'); 3 const core = dart_sdk.core;
4 const core = dart_sdk.core; 4 const dart = dart_sdk.dart;
5 const dart = dart_sdk.dart; 5 const dartx = dart_sdk.dartx;
6 const dartx = dart_sdk.dartx; 6 const node_modules = Object.create(null);
7 const node_modules = Object.create(null); 7 let B = () => (B = dart.constFn(node_modules.B$()))();
8 let B = () => (B = dart.constFn(node_modules.B$()))(); 8 let _B = () => (_B = dart.constFn(node_modules._B$()))();
9 let _B = () => (_B = dart.constFn(node_modules._B$()))(); 9 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionTyp e(dart.dynamic, [])))();
10 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))(); 10 let VoidToString = () => (VoidToString = dart.constFn(dart.definiteFunctionType( core.String, [])))();
11 let VoidToString = () => (VoidToString = dart.constFn(dart.definiteFunctionTyp e(core.String, [])))(); 11 node_modules.Callback = dart.typedef('Callback', () => dart.functionType(dart.vo id, [], {i: core.int}));
12 node_modules.Callback = dart.typedef('Callback', () => dart.functionType(dart. void, [], {i: core.int})); 12 node_modules.A = class A extends core.Object {};
13 node_modules.A = class A extends core.Object {}; 13 node_modules._A = class _A extends core.Object {};
14 node_modules._A = class _A extends core.Object {}; 14 node_modules.B$ = dart.generic(T => {
15 node_modules.B$ = dart.generic(T => { 15 class B extends core.Object {}
16 class B extends core.Object {} 16 dart.addTypeTests(B);
17 dart.addTypeTests(B); 17 return B;
18 return B; 18 });
19 }); 19 node_modules.B = B();
20 node_modules.B = B(); 20 node_modules._B$ = dart.generic(T => {
21 node_modules._B$ = dart.generic(T => { 21 class _B extends core.Object {}
22 class _B extends core.Object {} 22 dart.addTypeTests(_B);
23 dart.addTypeTests(_B); 23 return _B;
24 return _B; 24 });
25 }); 25 node_modules._B = _B();
26 node_modules._B = _B(); 26 node_modules.f = function() {
27 node_modules.f = function() { 27 };
28 }; 28 dart.fn(node_modules.f, VoidTodynamic());
29 dart.fn(node_modules.f, VoidTodynamic()); 29 node_modules._f = function() {
30 node_modules._f = function() { 30 };
31 }; 31 dart.fn(node_modules._f, VoidTodynamic());
32 dart.fn(node_modules._f, VoidTodynamic()); 32 node_modules.constant = "abc";
33 node_modules.constant = "abc"; 33 node_modules.finalConstant = "abc";
34 node_modules.finalConstant = "abc"; 34 dart.defineLazy(node_modules, {
35 dart.defineLazy(node_modules, { 35 get lazy() {
36 get lazy() { 36 return dart.fn(() => {
37 return dart.fn(() => { 37 core.print('lazy');
38 core.print('lazy'); 38 return "abc";
39 return "abc"; 39 }, VoidToString())();
40 }, VoidToString())(); 40 }
41 } 41 });
42 }); 42 node_modules.mutable = "abc";
43 node_modules.mutable = "abc"; 43 dart.defineLazy(node_modules, {
44 dart.defineLazy(node_modules, { 44 get lazyMutable() {
45 get lazyMutable() { 45 return dart.fn(() => {
46 return dart.fn(() => { 46 core.print('lazyMutable');
47 core.print('lazyMutable'); 47 return "abc";
48 return "abc"; 48 }, VoidToString())();
49 }, VoidToString())(); 49 },
50 }, 50 set lazyMutable(_) {}
51 set lazyMutable(_) {} 51 });
52 }); 52 // Exports:
53 // Exports: 53 exports.node_modules = node_modules;
54 exports.node_modules = node_modules;
55 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698