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

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

Issue 1142293002: Use dart.tearoff helper at tearoff sites (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Use dart.bind instead of dart.tearoff Created 5 years, 7 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') | no next file » | 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 = dart.defineLibrary(names, {}); 1 var names = dart.defineLibrary(names, {});
2 var core = dart.import(core); 2 var core = dart.import(core);
3 (function(exports, core) { 3 (function(exports, core) {
4 'use strict'; 4 'use strict';
5 exports.exports = 42; 5 exports.exports = 42;
6 let _foo$ = Symbol('_foo'); 6 let _foo$ = Symbol('_foo');
7 class Foo extends core.Object { 7 class Foo extends core.Object {
8 [_foo$]() { 8 [_foo$]() {
9 return 123; 9 return 123;
10 } 10 }
(...skipping 28 matching lines...) Expand all
39 get arguments() { 39 get arguments() {
40 return 200; 40 return 200;
41 }, 41 },
42 set arguments(_) {} 42 set arguments(_) {}
43 }); 43 });
44 function main() { 44 function main() {
45 core.print(exports.exports); 45 core.print(exports.exports);
46 core.print(new Foo()[_foo$]()); 46 core.print(new Foo()[_foo$]());
47 core.print(_foo()); 47 core.print(_foo());
48 core.print(new Frame.caller([1, 2, 3])); 48 core.print(new Frame.caller([1, 2, 3]));
49 let eval$ = dart.bind(Frame, 'callee'); 49 let eval$ = Frame.callee;
50 core.print(eval$); 50 core.print(eval$);
51 core.print(dart.notNull(Frame2.caller) + dart.notNull(Frame2.arguments)); 51 core.print(dart.notNull(Frame2.caller) + dart.notNull(Frame2.arguments));
52 } 52 }
53 dart.fn(main); 53 dart.fn(main);
54 // Exports: 54 // Exports:
55 exports.Foo = Foo; 55 exports.Foo = Foo;
56 exports.Frame = Frame; 56 exports.Frame = Frame;
57 exports.Frame2 = Frame2; 57 exports.Frame2 = Frame2;
58 exports.main = main; 58 exports.main = main;
59 })(names, core); 59 })(names, core);
OLDNEW
« no previous file with comments | « test/codegen/expect/methods.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698