| 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 } |
| 11 } | 11 } |
| 12 dart.setSignature(Foo, { | 12 dart.setSignature(Foo, { |
| 13 methods: () => ({[_foo$]: dart.functionType(dart.dynamic, [])}) | 13 methods: () => ({[_foo$]: dart.functionType(core.Object, [])}) |
| 14 }); | 14 }); |
| 15 function _foo() { | 15 function _foo() { |
| 16 return 456; | 16 return 456; |
| 17 } | 17 } |
| 18 dart.fn(_foo); | 18 dart.fn(_foo); |
| 19 class Frame extends core.Object { | 19 class Frame extends core.Object { |
| 20 caller(arguments$) { | 20 caller(arguments$) { |
| 21 this.arguments = arguments$; | 21 this.arguments = arguments$; |
| 22 } | 22 } |
| 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(core.Object, [])}), |
| 30 names: ['callee'] | 30 names: ['callee'] |
| 31 }); | 31 }); |
| 32 class Frame2 extends core.Object {} | 32 class Frame2 extends core.Object {} |
| 33 dart.defineLazyProperties(Frame2, { | 33 dart.defineLazyProperties(Frame2, { |
| 34 get caller() { | 34 get caller() { |
| 35 return 100; | 35 return 100; |
| 36 }, | 36 }, |
| 37 set caller(_) {}, | 37 set caller(_) {}, |
| 38 get arguments() { | 38 get arguments() { |
| 39 return 200; | 39 return 200; |
| 40 }, | 40 }, |
| 41 set arguments(_) {} | 41 set arguments(_) {} |
| 42 }); | 42 }); |
| 43 function main() { | 43 function main() { |
| 44 core.print(exports.exports); | 44 core.print(exports.exports); |
| 45 core.print(new Foo()[_foo$]()); | 45 core.print(new Foo()[_foo$]()); |
| 46 core.print(_foo()); | 46 core.print(_foo()); |
| 47 core.print(new Frame.caller([1, 2, 3])); | 47 core.print(new Frame.caller([1, 2, 3])); |
| 48 let eval$ = Frame.callee; | 48 let eval$ = Frame.callee; |
| 49 core.print(eval$); | 49 core.print(eval$); |
| 50 core.print(dart.notNull(Frame2.caller) + dart.notNull(Frame2.arguments)); | 50 core.print(dart.notNull(Frame2.caller) + dart.notNull(Frame2.arguments)); |
| 51 } | 51 } |
| 52 dart.fn(main); | 52 dart.fn(main); |
| 53 // Exports: | 53 // Exports: |
| 54 exports.Foo = Foo; | 54 exports.Foo = Foo; |
| 55 exports.Frame = Frame; | 55 exports.Frame = Frame; |
| 56 exports.Frame2 = Frame2; | 56 exports.Frame2 = Frame2; |
| 57 exports.main = main; | 57 exports.main = main; |
| 58 })(names, core); | 58 })(names, core); |
| OLD | NEW |