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

Unified Diff: test/codegen/expect/fieldtest/fieldtest.js

Issue 967713002: fixes #69, avoid module name inside module scope (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « test/codegen/expect/dom/dom.js ('k') | test/codegen/expect/html_input_a/html_input_a.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/fieldtest/fieldtest.js
diff --git a/test/codegen/expect/fieldtest/fieldtest.js b/test/codegen/expect/fieldtest/fieldtest.js
index ca1dda434ae0786e5e5d7ea0ad26bdc3d2e94a68..45cf4355334202bacc7415410ff488dcd26e53d1 100644
--- a/test/codegen/expect/fieldtest/fieldtest.js
+++ b/test/codegen/expect/fieldtest/fieldtest.js
@@ -1,5 +1,5 @@
var fieldtest;
-(function(fieldtest) {
+(function(exports) {
'use strict';
class A extends dart.Object {
A() {
@@ -35,13 +35,13 @@ var fieldtest;
function compute() {
return 123;
}
- dart.defineLazyProperties(fieldtest, {
+ dart.defineLazyProperties(exports, {
get y() {
return compute() + 444;
},
set y() {}
});
- dart.copyProperties(fieldtest, {
+ dart.copyProperties(exports, {
get q() {
return core.String['+'](core.String['+']('life, ', 'the universe '), 'and everything');
},
@@ -49,7 +49,7 @@ var fieldtest;
return 42;
},
set z(value) {
- fieldtest.y = dart.as(value, core.int);
+ exports.y = dart.as(value, core.int);
}
});
// Function main: () → void
@@ -60,15 +60,15 @@ var fieldtest;
core.print(baz(a));
}
// Exports:
- fieldtest.A = A;
- fieldtest.B = B;
- fieldtest.B$ = B$;
- fieldtest.foo = foo;
- fieldtest.bar = bar;
- fieldtest.baz = baz;
- fieldtest.compute = compute;
- fieldtest.q = q;
- fieldtest.z = z;
- fieldtest.z = z;
- fieldtest.main = main;
+ exports.A = A;
+ exports.B = B;
+ exports.B$ = B$;
+ exports.foo = foo;
+ exports.bar = bar;
+ exports.baz = baz;
+ exports.compute = compute;
+ exports.q = q;
+ exports.z = z;
+ exports.z = z;
+ exports.main = main;
})(fieldtest || (fieldtest = {}));
« no previous file with comments | « test/codegen/expect/dom/dom.js ('k') | test/codegen/expect/html_input_a/html_input_a.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698