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

Unified Diff: pkg/dev_compiler/test/codegen_expected/varargs.js

Issue 2797443007: fix #29182, generate top level const fields lazily (Closed)
Patch Set: fix Created 3 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 side-by-side diff with in-line comments
Download patch
Index: pkg/dev_compiler/test/codegen_expected/varargs.js
diff --git a/pkg/dev_compiler/test/codegen_expected/varargs.js b/pkg/dev_compiler/test/codegen_expected/varargs.js
index 484bb57895a787a73aac78b2d31fa1f8c6847e72..5576e97067cd4b0fc641eb21934001f64f6f9a98 100644
--- a/pkg/dev_compiler/test/codegen_expected/varargs.js
+++ b/pkg/dev_compiler/test/codegen_expected/varargs.js
@@ -21,7 +21,11 @@ define(['dart_sdk'], function(dart_sdk) {
new() {
}
};
- src__varargs.rest = dart.const(new src__varargs._Rest());
+ dart.defineLazy(src__varargs, {
+ get rest() {
+ return dart.const(new src__varargs._Rest());
+ }
+ });
src__varargs.spread = function(args) {
dart.throw(new core.StateError('The spread function cannot be called, ' + 'it should be compiled away.'));
};

Powered by Google App Engine
This is Rietveld 408576698