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

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

Issue 1483813002: Use const for const/final top-levels, types, symbols. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 1 month 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/misc.js
diff --git a/test/codegen/expect/misc.js b/test/codegen/expect/misc.js
index b5fe9068c7fa47b3344f4346f36f2571a35d868c..ddd4f8f8dda8ae60b89f6632d01d0c22a73fe07a 100644
--- a/test/codegen/expect/misc.js
+++ b/test/codegen/expect/misc.js
@@ -12,8 +12,8 @@ dart_library.library('misc', null, /* Imports */[
dart.setSignature(_Uninitialized, {
constructors: () => ({_Uninitialized: [_Uninitialized, []]})
});
- let UNINITIALIZED = dart.const(new _Uninitialized());
- let Generic$ = dart.generic(function(T) {
+ const UNINITIALIZED = dart.const(new _Uninitialized());
+ const Generic$ = dart.generic(function(T) {
class Generic extends core.Object {
get type() {
return Generic$();
@@ -43,8 +43,8 @@ dart_library.library('misc', null, /* Imports */[
return ch == ' ' || ch == '\n' || ch == '\r' || ch == '\t';
}
dart.fn(_isWhitespace, core.bool, [core.String]);
- let expr = 'foo';
- let _escapeMap = dart.const(dart.map({'\n': '\\n', '\r': '\\r', '\f': '\\f', '\b': '\\b', '\t': '\\t', '\v': '\\v', '': '\\x7F', [`\${${expr}}`]: ''}));
+ const expr = 'foo';
+ const _escapeMap = dart.const(dart.map({'\n': '\\n', '\r': '\\r', '\f': '\\f', '\b': '\\b', '\t': '\\t', '\v': '\\v', '': '\\x7F', [`\${${expr}}`]: ''}));
function main() {
core.print(dart.toString(1));
core.print(dart.toString(1.0));

Powered by Google App Engine
This is Rietveld 408576698