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

Unified Diff: pkg/dev_compiler/test/codegen_expected/destructuring.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/destructuring.js
diff --git a/pkg/dev_compiler/test/codegen_expected/destructuring.js b/pkg/dev_compiler/test/codegen_expected/destructuring.js
index c8fb9e5f50fe530eddfb42a35f504959c69c771b..e3004f5138c8e936599467cbcb6dcd199373491e 100644
--- a/pkg/dev_compiler/test/codegen_expected/destructuring.js
+++ b/pkg/dev_compiler/test/codegen_expected/destructuring.js
@@ -75,7 +75,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