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

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

Issue 1122133003: fixes #157, renaming local library identifiers if needed. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: fix core.Symbol reference 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
OLDNEW
1 var temps; 1 var temps, core;
2 (function(exports) { 2 (function(exports, core) {
3 'use strict'; 3 'use strict';
4 let _x = Symbol('_x'); 4 let _x = Symbol('_x');
5 let __x = Symbol('__x'); 5 let __x = Symbol('__x');
6 let _function = Symbol('_function'); 6 let _function = Symbol('_function');
7 class FormalCollision extends core.Object { 7 class FormalCollision extends core.Object {
8 FormalCollision(x, _x$, func) { 8 FormalCollision(x, _x$, func) {
9 this[_x] = x; 9 this[_x] = x;
10 this[__x] = _x$; 10 this[__x] = _x$;
11 this[_function] = func; 11 this[_function] = func;
12 } 12 }
(...skipping 14 matching lines...) Expand all
27 // Function main: () → dynamic 27 // Function main: () → dynamic
28 function main() { 28 function main() {
29 core.print(new FormalCollision(1, 2, x => x)); 29 core.print(new FormalCollision(1, 2, x => x));
30 core.print(new OptionalArg()[_opt]); 30 core.print(new OptionalArg()[_opt]);
31 core.print(new OptionalArg.named()[_opt]); 31 core.print(new OptionalArg.named()[_opt]);
32 } 32 }
33 // Exports: 33 // Exports:
34 exports.FormalCollision = FormalCollision; 34 exports.FormalCollision = FormalCollision;
35 exports.OptionalArg = OptionalArg; 35 exports.OptionalArg = OptionalArg;
36 exports.main = main; 36 exports.main = main;
37 })(temps || (temps = {})); 37 })(temps || (temps = {}), core);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698