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

Side by Side Diff: test/codegen/expect/names.js

Issue 1090313002: fixes #52, fields shadowing getters/setters or other fields (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 unified diff | Download patch
« no previous file with comments | « test/codegen/expect/methods.js ('k') | test/codegen/expect/opassign.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 let arguments$ = Symbol('arguments');
15 class Frame extends core.Object { 16 class Frame extends core.Object {
16 ['caller*'](arguments$) { 17 get arguments() {
17 this.arguments = arguments$; 18 return this[arguments$];
19 }
20 ['caller*'](arguments$0) {
21 this[arguments$] = arguments$0;
18 } 22 }
19 static ['callee*']() { 23 static ['callee*']() {
20 return null; 24 return null;
21 } 25 }
22 } 26 }
23 dart.defineNamedConstructor(Frame, 'caller*'); 27 dart.defineNamedConstructor(Frame, 'caller*');
24 // Function main: () → dynamic 28 // Function main: () → dynamic
25 function main() { 29 function main() {
26 core.print(exports.exports); 30 core.print(exports.exports);
27 core.print(new Foo()[_foo$]()); 31 core.print(new Foo()[_foo$]());
28 core.print(_foo()); 32 core.print(_foo());
29 core.print(new Frame.caller(new core.List.from([1, 2, 3]))); 33 core.print(new Frame.caller(new core.List.from([1, 2, 3])));
30 let eval$ = Frame.callee; 34 let eval$ = Frame.callee;
31 core.print(eval$); 35 core.print(eval$);
32 } 36 }
33 // Exports: 37 // Exports:
34 exports.Foo = Foo; 38 exports.Foo = Foo;
35 exports.Frame = Frame; 39 exports.Frame = Frame;
36 exports.main = main; 40 exports.main = main;
37 })(names || (names = {})); 41 })(names || (names = {}));
OLDNEW
« no previous file with comments | « test/codegen/expect/methods.js ('k') | test/codegen/expect/opassign.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698