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

Unified 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, 9 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
Index: test/codegen/expect/names.js
diff --git a/test/codegen/expect/names.js b/test/codegen/expect/names.js
new file mode 100644
index 0000000000000000000000000000000000000000..ac268d4e3510a09877f867f412fb96342f41d45c
--- /dev/null
+++ b/test/codegen/expect/names.js
@@ -0,0 +1,24 @@
+var names;
+(function(exports) {
+ 'use strict';
+ exports.exports = 42;
+ let _foo$ = Symbol('_foo');
+ class Foo extends core.Object {
+ [_foo$]() {
+ return 123;
+ }
+ }
+ // Function _foo: () → dynamic
+ function _foo() {
+ return 456;
+ }
+ // Function main: () → dynamic
+ function main() {
+ core.print(exports.exports);
+ core.print(new Foo()._foo());
+ core.print(_foo());
+ }
+ // Exports:
+ exports.Foo = Foo;
+ exports.main = main;
+})(names || (names = {}));

Powered by Google App Engine
This is Rietveld 408576698