| OLD | NEW |
| 1 dart_library.library('names', null, /* Imports */[ | 1 dart_library.library('names', null, /* Imports */[ |
| 2 "dart_runtime/dart", | 2 "dart_runtime/dart", |
| 3 'dart/core' | 3 'dart/core' |
| 4 ], /* Lazy imports */[ | 4 ], /* Lazy imports */[ |
| 5 ], function(exports, dart, core) { | 5 ], function(exports, dart, core) { |
| 6 'use strict'; | 6 'use strict'; |
| 7 let dartx = dart.dartx; | 7 let dartx = dart.dartx; |
| 8 exports.exports = 42; | 8 exports.exports = 42; |
| 9 let _foo$ = Symbol('_foo'); | 9 let _foo$ = Symbol('_foo'); |
| 10 class Foo extends core.Object { | 10 class Foo extends core.Object { |
| 11 [_foo$]() { | 11 [_foo$]() { |
| 12 return 123; | 12 return 123; |
| 13 } | 13 } |
| 14 } | 14 } |
| 15 dart.setSignature(Foo, { | 15 dart.setSignature(Foo, { |
| 16 methods: () => ({[_foo$]: [core.Object, []]}) | 16 methods: () => ({[_foo$]: [dart.dynamic, []]}) |
| 17 }); | 17 }); |
| 18 function _foo() { | 18 function _foo() { |
| 19 return 456; | 19 return 456; |
| 20 } | 20 } |
| 21 dart.fn(_foo); | 21 dart.fn(_foo); |
| 22 class Frame extends core.Object { | 22 class Frame extends core.Object { |
| 23 caller(arguments$) { | 23 caller(arguments$) { |
| 24 this.arguments = arguments$; | 24 this.arguments = arguments$; |
| 25 } | 25 } |
| 26 static callee() { | 26 static callee() { |
| 27 return null; | 27 return null; |
| 28 } | 28 } |
| 29 } | 29 } |
| 30 dart.defineNamedConstructor(Frame, 'caller'); | 30 dart.defineNamedConstructor(Frame, 'caller'); |
| 31 dart.setSignature(Frame, { | 31 dart.setSignature(Frame, { |
| 32 constructors: () => ({caller: [Frame, [core.List]]}), | 32 constructors: () => ({caller: [Frame, [core.List]]}), |
| 33 statics: () => ({callee: [core.Object, []]}), | 33 statics: () => ({callee: [dart.dynamic, []]}), |
| 34 names: ['callee'] | 34 names: ['callee'] |
| 35 }); | 35 }); |
| 36 class Frame2 extends core.Object {} | 36 class Frame2 extends core.Object {} |
| 37 dart.defineLazyProperties(Frame2, { | 37 dart.defineLazyProperties(Frame2, { |
| 38 get caller() { | 38 get caller() { |
| 39 return 100; | 39 return 100; |
| 40 }, | 40 }, |
| 41 set caller(_) {}, | 41 set caller(_) {}, |
| 42 get arguments() { | 42 get arguments() { |
| 43 return 200; | 43 return 200; |
| 44 }, | 44 }, |
| 45 set arguments(_) {} | 45 set arguments(_) {} |
| 46 }); | 46 }); |
| 47 function main() { | 47 function main() { |
| 48 core.print(exports.exports); | 48 core.print(exports.exports); |
| 49 core.print(new Foo()[_foo$]()); | 49 core.print(new Foo()[_foo$]()); |
| 50 core.print(_foo()); | 50 core.print(_foo()); |
| 51 core.print(new Frame.caller([1, 2, 3])); | 51 core.print(new Frame.caller([1, 2, 3])); |
| 52 let eval$ = Frame.callee; | 52 let eval$ = Frame.callee; |
| 53 core.print(eval$); | 53 core.print(eval$); |
| 54 core.print(dart.notNull(Frame2.caller) + dart.notNull(Frame2.arguments)); | 54 core.print(dart.notNull(Frame2.caller) + dart.notNull(Frame2.arguments)); |
| 55 } | 55 } |
| 56 dart.fn(main); | 56 dart.fn(main); |
| 57 // Exports: | 57 // Exports: |
| 58 exports.Foo = Foo; | 58 exports.Foo = Foo; |
| 59 exports.Frame = Frame; | 59 exports.Frame = Frame; |
| 60 exports.Frame2 = Frame2; | 60 exports.Frame2 = Frame2; |
| 61 exports.main = main; | 61 exports.main = main; |
| 62 }); | 62 }); |
| OLD | NEW |