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

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

Issue 3009733002: fix how DDC finds its undefined constant (Closed)
Patch Set: rebase and rebuild JS files Created 3 years, 3 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() { 13 (node_modules.A.new = function() {
14 }).prototype = node_modules.A.prototype; 14 }).prototype = node_modules.A.prototype;
15 dart.addTypeTests(node_modules.A);
15 node_modules._A = class _A extends core.Object {}; 16 node_modules._A = class _A extends core.Object {};
16 (node_modules._A.new = function() { 17 (node_modules._A.new = function() {
17 }).prototype = node_modules._A.prototype; 18 }).prototype = node_modules._A.prototype;
19 dart.addTypeTests(node_modules._A);
20 const _is_B_default = Symbol('_is_B_default');
18 node_modules.B$ = dart.generic(T => { 21 node_modules.B$ = dart.generic(T => {
19 class B extends core.Object {} 22 class B extends core.Object {}
20 (B.new = function() { 23 (B.new = function() {
21 }).prototype = B.prototype; 24 }).prototype = B.prototype;
22 dart.addTypeTests(B); 25 dart.addTypeTests(B);
26 B.prototype[_is_B_default] = true;
23 return B; 27 return B;
24 }); 28 });
25 node_modules.B = B(); 29 node_modules.B = B();
30 dart.addTypeTests(node_modules.B, _is_B_default);
31 const _is__B_default = Symbol('_is__B_default');
26 node_modules._B$ = dart.generic(T => { 32 node_modules._B$ = dart.generic(T => {
27 class _B extends core.Object {} 33 class _B extends core.Object {}
28 (_B.new = function() { 34 (_B.new = function() {
29 }).prototype = _B.prototype; 35 }).prototype = _B.prototype;
30 dart.addTypeTests(_B); 36 dart.addTypeTests(_B);
37 _B.prototype[_is__B_default] = true;
31 return _B; 38 return _B;
32 }); 39 });
33 node_modules._B = _B(); 40 node_modules._B = _B();
41 dart.addTypeTests(node_modules._B, _is__B_default);
34 node_modules.f = function() { 42 node_modules.f = function() {
35 }; 43 };
36 dart.fn(node_modules.f, VoidTodynamic()); 44 dart.fn(node_modules.f, VoidTodynamic());
37 node_modules._f = function() { 45 node_modules._f = function() {
38 }; 46 };
39 dart.fn(node_modules._f, VoidTodynamic()); 47 dart.fn(node_modules._f, VoidTodynamic());
40 dart.defineLazy(node_modules, { 48 dart.defineLazy(node_modules, {
41 get constant() { 49 get constant() {
42 return "abc"; 50 return "abc";
43 }, 51 },
(...skipping 16 matching lines...) Expand all
60 return "abc"; 68 return "abc";
61 }, VoidToString())(); 69 }, VoidToString())();
62 }, 70 },
63 set lazyMutable(_) {} 71 set lazyMutable(_) {}
64 }); 72 });
65 dart.trackLibraries("node_modules", { 73 dart.trackLibraries("node_modules", {
66 "node_modules.dart": node_modules 74 "node_modules.dart": node_modules
67 }, null); 75 }, null);
68 // Exports: 76 // Exports:
69 exports.node_modules = node_modules; 77 exports.node_modules = node_modules;
OLDNEW
« no previous file with comments | « pkg/dev_compiler/test/codegen_expected/identity_test.js ('k') | pkg/dev_compiler/test/codegen_expected/script.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698