| OLD | NEW |
| 1 var methods; | 1 var methods; |
| 2 (function(exports) { | 2 (function(exports) { |
| 3 'use strict'; | 3 'use strict'; |
| 4 let _c = Symbol('_c'); | 4 let _c = Symbol('_c'); |
| 5 class A extends core.Object { | 5 class A extends core.Object { |
| 6 A() { | 6 A() { |
| 7 this[_c] = 3; | 7 this[_c] = 3; |
| 8 } | 8 } |
| 9 x() { | 9 x() { |
| 10 return 42; | 10 return 42; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 } | 39 } |
| 40 set c(c) { | 40 set c(c) { |
| 41 this[_c] = c; | 41 this[_c] = c; |
| 42 } | 42 } |
| 43 } | 43 } |
| 44 class Bar extends core.Object { | 44 class Bar extends core.Object { |
| 45 call(x) { | 45 call(x) { |
| 46 return core.print(`hello from ${x}`); | 46 return core.print(`hello from ${x}`); |
| 47 } | 47 } |
| 48 } | 48 } |
| 49 let bar = Symbol('bar'); |
| 49 class Foo extends core.Object { | 50 class Foo extends core.Object { |
| 50 Foo() { | 51 Foo() { |
| 51 this.bar = new Bar(); | 52 this[bar] = new Bar(); |
| 53 } |
| 54 get bar() { |
| 55 return this[bar]; |
| 52 } | 56 } |
| 53 } | 57 } |
| 54 // Function test: () → dynamic | 58 // Function test: () → dynamic |
| 55 function test() { | 59 function test() { |
| 56 let f = new Foo(); | 60 let f = new Foo(); |
| 57 dart.dsend(f, 'bar', "Bar's call method!"); | 61 dart.dsend(f, 'bar', "Bar's call method!"); |
| 58 } | 62 } |
| 59 // Exports: | 63 // Exports: |
| 60 exports.A = A; | 64 exports.A = A; |
| 61 exports.Bar = Bar; | 65 exports.Bar = Bar; |
| 62 exports.Foo = Foo; | 66 exports.Foo = Foo; |
| 63 exports.test = test; | 67 exports.test = test; |
| 64 })(methods || (methods = {})); | 68 })(methods || (methods = {})); |
| OLD | NEW |