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

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

Issue 2934623003: fix #29753, use ES5 constructors for ddc (Closed)
Patch Set: rebase Created 3 years, 6 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 'use strict'; 1 'use strict';
2 const dart_sdk = require('dart_sdk'); 2 const dart_sdk = require('dart_sdk');
3 const core = dart_sdk.core; 3 const core = dart_sdk.core;
4 const dart = dart_sdk.dart; 4 const dart = dart_sdk.dart;
5 const dartx = dart_sdk.dartx; 5 const dartx = dart_sdk.dartx;
6 const node_modules = Object.create(null); 6 const node_modules = Object.create(null);
7 let B = () => (B = dart.constFn(node_modules.B$()))(); 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 VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.fnType(dart.dynamic , [])))(); 9 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.fnType(dart.dynamic , [])))();
10 let VoidToString = () => (VoidToString = dart.constFn(dart.fnType(core.String, [ ])))(); 10 let VoidToString = () => (VoidToString = dart.constFn(dart.fnType(core.String, [ ])))();
11 node_modules.Callback = dart.typedef('Callback', () => dart.fnTypeFuzzy(dart.voi d, [], {i: core.int})); 11 node_modules.Callback = dart.typedef('Callback', () => dart.fnTypeFuzzy(dart.voi d, [], {i: core.int}));
12 node_modules.A = class A extends core.Object {}; 12 node_modules.A = class A extends core.Object {};
13 (node_modules.A.new = function() {
14 }).prototype = node_modules.A.prototype;
13 node_modules._A = class _A extends core.Object {}; 15 node_modules._A = class _A extends core.Object {};
16 (node_modules._A.new = function() {
17 }).prototype = node_modules._A.prototype;
14 node_modules.B$ = dart.generic(T => { 18 node_modules.B$ = dart.generic(T => {
15 class B extends core.Object {} 19 class B extends core.Object {}
20 (B.new = function() {
21 }).prototype = B.prototype;
16 dart.addTypeTests(B); 22 dart.addTypeTests(B);
17 return B; 23 return B;
18 }); 24 });
19 node_modules.B = B(); 25 node_modules.B = B();
20 node_modules._B$ = dart.generic(T => { 26 node_modules._B$ = dart.generic(T => {
21 class _B extends core.Object {} 27 class _B extends core.Object {}
28 (_B.new = function() {
29 }).prototype = _B.prototype;
22 dart.addTypeTests(_B); 30 dart.addTypeTests(_B);
23 return _B; 31 return _B;
24 }); 32 });
25 node_modules._B = _B(); 33 node_modules._B = _B();
26 node_modules.f = function() { 34 node_modules.f = function() {
27 }; 35 };
28 dart.fn(node_modules.f, VoidTodynamic()); 36 dart.fn(node_modules.f, VoidTodynamic());
29 node_modules._f = function() { 37 node_modules._f = function() {
30 }; 38 };
31 dart.fn(node_modules._f, VoidTodynamic()); 39 dart.fn(node_modules._f, VoidTodynamic());
(...skipping 20 matching lines...) Expand all
52 return "abc"; 60 return "abc";
53 }, VoidToString())(); 61 }, VoidToString())();
54 }, 62 },
55 set lazyMutable(_) {} 63 set lazyMutable(_) {}
56 }); 64 });
57 dart.trackLibraries("node_modules", { 65 dart.trackLibraries("node_modules", {
58 "node_modules.dart": node_modules 66 "node_modules.dart": node_modules
59 }, null); 67 }, null);
60 // Exports: 68 // Exports:
61 exports.node_modules = node_modules; 69 exports.node_modules = node_modules;
OLDNEW
« no previous file with comments | « pkg/dev_compiler/test/codegen_expected/es6_modules.js ('k') | pkg/dev_compiler/test/codegen_expected/sunflower/sunflower.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698