Index: test/codegen/expect/names.js |
diff --git a/test/codegen/expect/names.js b/test/codegen/expect/names.js |
index 9902c1acf3057b30dcc08b8ee78ea55af954be24..190c6fb48df0d845a42ae630e33a20c4ae85d403 100644 |
--- a/test/codegen/expect/names.js |
+++ b/test/codegen/expect/names.js |
@@ -13,25 +13,38 @@ var names; |
return 456; |
} |
class Frame extends core.Object { |
- ['caller*'](arguments$) { |
+ caller(arguments$) { |
this.arguments = arguments$; |
} |
- static ['callee*']() { |
+ static callee() { |
return null; |
} |
} |
- dart.defineNamedConstructor(Frame, 'caller*'); |
+ dart.defineNamedConstructor(Frame, 'caller'); |
+ class Frame2 extends core.Object {} |
+ dart.defineLazyProperties(Frame2, { |
+ get caller() { |
+ return 100; |
+ }, |
+ set caller(_) {}, |
+ get arguments() { |
+ return 200; |
+ }, |
+ set arguments(_) {} |
+ }); |
// Function main: () → dynamic |
function main() { |
core.print(exports.exports); |
core.print(new Foo()[_foo$]()); |
core.print(_foo()); |
core.print(new Frame.caller([1, 2, 3])); |
- let eval$ = dart.bind(Frame, 'callee*'); |
+ let eval$ = dart.bind(Frame, 'callee'); |
core.print(eval$); |
+ core.print(dart.notNull(Frame2.caller) + dart.notNull(Frame2.arguments)); |
} |
// Exports: |
exports.Foo = Foo; |
exports.Frame = Frame; |
+ exports.Frame2 = Frame2; |
exports.main = main; |
})(names || (names = {})); |