| OLD | NEW |
| 1 var names = dart.defineLibrary(names, {}); | 1 var names = dart.defineLibrary(names, {}); |
| 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 exports.exports = 42; | 5 exports.exports = 42; |
| 6 let _foo$ = Symbol('_foo'); | 6 let _foo$ = Symbol('_foo'); |
| 7 class Foo extends core.Object { | 7 class Foo extends core.Object { |
| 8 [_foo$]() { | 8 [_foo$]() { |
| 9 return 123; | 9 return 123; |
| 10 } | 10 } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 static callee() { | 23 static callee() { |
| 24 return null; | 24 return null; |
| 25 } | 25 } |
| 26 } | 26 } |
| 27 dart.defineNamedConstructor(Frame, 'caller'); | 27 dart.defineNamedConstructor(Frame, 'caller'); |
| 28 dart.setSignature(Frame, { | 28 dart.setSignature(Frame, { |
| 29 statics: () => ({callee: dart.functionType(dart.dynamic, [])}), | 29 statics: () => ({callee: dart.functionType(dart.dynamic, [])}), |
| 30 names: ['callee'] | 30 names: ['callee'] |
| 31 }); | 31 }); |
| 32 class Frame2 extends core.Object {} | 32 class Frame2 extends core.Object {} |
| 33 dart.setSignature(Frame2, {}); | |
| 34 dart.defineLazyProperties(Frame2, { | 33 dart.defineLazyProperties(Frame2, { |
| 35 get caller() { | 34 get caller() { |
| 36 return 100; | 35 return 100; |
| 37 }, | 36 }, |
| 38 set caller(_) {}, | 37 set caller(_) {}, |
| 39 get arguments() { | 38 get arguments() { |
| 40 return 200; | 39 return 200; |
| 41 }, | 40 }, |
| 42 set arguments(_) {} | 41 set arguments(_) {} |
| 43 }); | 42 }); |
| 44 function main() { | 43 function main() { |
| 45 core.print(exports.exports); | 44 core.print(exports.exports); |
| 46 core.print(new Foo()[_foo$]()); | 45 core.print(new Foo()[_foo$]()); |
| 47 core.print(_foo()); | 46 core.print(_foo()); |
| 48 core.print(new Frame.caller([1, 2, 3])); | 47 core.print(new Frame.caller([1, 2, 3])); |
| 49 let eval$ = Frame.callee; | 48 let eval$ = Frame.callee; |
| 50 core.print(eval$); | 49 core.print(eval$); |
| 51 core.print(dart.notNull(Frame2.caller) + dart.notNull(Frame2.arguments)); | 50 core.print(dart.notNull(Frame2.caller) + dart.notNull(Frame2.arguments)); |
| 52 } | 51 } |
| 53 dart.fn(main); | 52 dart.fn(main); |
| 54 // Exports: | 53 // Exports: |
| 55 exports.Foo = Foo; | 54 exports.Foo = Foo; |
| 56 exports.Frame = Frame; | 55 exports.Frame = Frame; |
| 57 exports.Frame2 = Frame2; | 56 exports.Frame2 = Frame2; |
| 58 exports.main = main; | 57 exports.main = main; |
| 59 })(names, core); | 58 })(names, core); |
| OLD | NEW |