OLD | NEW |
1 var names; | 1 var names; |
2 (function(exports) { | 2 (function(exports) { |
3 'use strict'; | 3 'use strict'; |
4 exports.exports = 42; | 4 exports.exports = 42; |
5 let _foo$ = Symbol('_foo'); | 5 let _foo$ = Symbol('_foo'); |
6 class Foo extends core.Object { | 6 class Foo extends core.Object { |
7 [_foo$]() { | 7 [_foo$]() { |
8 return 123; | 8 return 123; |
9 } | 9 } |
10 } | 10 } |
11 // Function _foo: () → dynamic | 11 // Function _foo: () → dynamic |
12 function _foo() { | 12 function _foo() { |
13 return 456; | 13 return 456; |
14 } | 14 } |
15 class Frame extends core.Object { | 15 class Frame extends core.Object { |
16 ['caller*'](arguments$) { | 16 caller(arguments$) { |
17 this.arguments = arguments$; | 17 this.arguments = arguments$; |
18 } | 18 } |
19 static ['callee*']() { | 19 static callee() { |
20 return null; | 20 return null; |
21 } | 21 } |
22 } | 22 } |
23 dart.defineNamedConstructor(Frame, 'caller*'); | 23 dart.defineNamedConstructor(Frame, 'caller'); |
| 24 class Frame2 extends core.Object {} |
| 25 dart.defineLazyProperties(Frame2, { |
| 26 get caller() { |
| 27 return 100; |
| 28 }, |
| 29 set caller(_) {}, |
| 30 get arguments() { |
| 31 return 200; |
| 32 }, |
| 33 set arguments(_) {} |
| 34 }); |
24 // Function main: () → dynamic | 35 // Function main: () → dynamic |
25 function main() { | 36 function main() { |
26 core.print(exports.exports); | 37 core.print(exports.exports); |
27 core.print(new Foo()[_foo$]()); | 38 core.print(new Foo()[_foo$]()); |
28 core.print(_foo()); | 39 core.print(_foo()); |
29 core.print(new Frame.caller([1, 2, 3])); | 40 core.print(new Frame.caller([1, 2, 3])); |
30 let eval$ = dart.bind(Frame, 'callee*'); | 41 let eval$ = dart.bind(Frame, 'callee'); |
31 core.print(eval$); | 42 core.print(eval$); |
| 43 core.print(dart.notNull(Frame2.caller) + dart.notNull(Frame2.arguments)); |
32 } | 44 } |
33 // Exports: | 45 // Exports: |
34 exports.Foo = Foo; | 46 exports.Foo = Foo; |
35 exports.Frame = Frame; | 47 exports.Frame = Frame; |
| 48 exports.Frame2 = Frame2; |
36 exports.main = main; | 49 exports.main = main; |
37 })(names || (names = {})); | 50 })(names || (names = {})); |
OLD | NEW |