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

Side by Side Diff: test/codegen/expect/methods/methods.js

Issue 967713002: fixes #69, avoid module name inside module scope (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « test/codegen/expect/math/math.js ('k') | test/codegen/expect/sunflower/sunflower.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 var methods; 1 var methods;
2 (function(methods) { 2 (function(exports) {
3 'use strict'; 3 'use strict';
4 class A extends dart.Object { 4 class A extends dart.Object {
5 A() { 5 A() {
6 this._c = 3; 6 this._c = 3;
7 } 7 }
8 x() { 8 x() {
9 return 42; 9 return 42;
10 } 10 }
11 y(a) { 11 y(a) {
12 return a; 12 return a;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 Foo() { 49 Foo() {
50 this.bar = new Bar(); 50 this.bar = new Bar();
51 } 51 }
52 } 52 }
53 // Function test: () → dynamic 53 // Function test: () → dynamic
54 function test() { 54 function test() {
55 let f = new Foo(); 55 let f = new Foo();
56 dart.dinvoke(f, 'bar', "Bar's call method!"); 56 dart.dinvoke(f, 'bar', "Bar's call method!");
57 } 57 }
58 // Exports: 58 // Exports:
59 methods.A = A; 59 exports.A = A;
60 methods.Bar = Bar; 60 exports.Bar = Bar;
61 methods.Foo = Foo; 61 exports.Foo = Foo;
62 methods.test = test; 62 exports.test = test;
63 })(methods || (methods = {})); 63 })(methods || (methods = {}));
OLDNEW
« no previous file with comments | « test/codegen/expect/math/math.js ('k') | test/codegen/expect/sunflower/sunflower.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698