Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Unified Diff: test/codegen/expect/names.js

Issue 1111803005: fix #159, static renames for caller/arguments (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/codegen/js_names.dart ('k') | test/codegen/names.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 = {}));
« no previous file with comments | « lib/src/codegen/js_names.dart ('k') | test/codegen/names.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698