| OLD | NEW |
| 1 var methods = dart.defineLibrary(methods, {}); | 1 var methods = dart.defineLibrary(methods, {}); |
| 2 var core = dart.import(core); | 2 var core = dart.import(core); |
| 3 (function(exports, core) { | 3 (function(exports, core) { |
| 4 'use strict'; | 4 'use strict'; |
| 5 let _c = Symbol('_c'); | 5 let _c = Symbol('_c'); |
| 6 class A extends core.Object { | 6 class A extends core.Object { |
| 7 A() { | 7 A() { |
| 8 this[_c] = 3; | 8 this[_c] = 3; |
| 9 } | 9 } |
| 10 x() { | 10 x() { |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 class Foo extends core.Object { | 63 class Foo extends core.Object { |
| 64 Foo() { | 64 Foo() { |
| 65 this.bar = new Bar(); | 65 this.bar = new Bar(); |
| 66 } | 66 } |
| 67 } | 67 } |
| 68 dart.setSignature(Foo, {}); | 68 dart.setSignature(Foo, {}); |
| 69 function test() { | 69 function test() { |
| 70 let f = new Foo(); | 70 let f = new Foo(); |
| 71 dart.dcall(f.bar, "Bar's call method!"); | 71 dart.dcall(f.bar, "Bar's call method!"); |
| 72 let a = new A(); | 72 let a = new A(); |
| 73 let g = a.x.bind(a); | 73 let g = dart.bind(a, 'x'); |
| 74 let aa = new A(); | 74 let aa = new A(); |
| 75 let h = dart.dload(aa, 'x'); | 75 let h = dart.dload(aa, 'x'); |
| 76 } | 76 } |
| 77 dart.fn(test); | 77 dart.fn(test); |
| 78 // Exports: | 78 // Exports: |
| 79 exports.A = A; | 79 exports.A = A; |
| 80 exports.Bar = Bar; | 80 exports.Bar = Bar; |
| 81 exports.Foo = Foo; | 81 exports.Foo = Foo; |
| 82 exports.test = test; | 82 exports.test = test; |
| 83 })(methods, core); | 83 })(methods, core); |
| OLD | NEW |