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

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

Issue 1030063004: more care around generated names, fixes #60 #82 and #97 (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
OLDNEW
(Empty)
1 var names;
2 (function(exports) {
3 'use strict';
4 exports.exports = 42;
5 let _foo$ = Symbol('_foo');
6 class Foo extends core.Object {
7 [_foo$]() {
8 return 123;
9 }
10 }
11 // Function _foo: () → dynamic
12 function _foo() {
13 return 456;
14 }
15 // Function main: () → dynamic
16 function main() {
17 core.print(exports.exports);
18 core.print(new Foo()._foo());
19 core.print(_foo());
20 }
21 // Exports:
22 exports.Foo = Foo;
23 exports.main = main;
24 })(names || (names = {}));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698