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

Unified Diff: lib/runtime/dart/js.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: Rebased after vsm's regen 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
« no previous file with comments | « lib/runtime/dart/isolate.js ('k') | lib/runtime/dart/math.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/js.js
diff --git a/lib/runtime/dart/js.js b/lib/runtime/dart/js.js
index 01b88cffa796a94bc5473f3f5e07b37ce97e1f65..c4a9c9039cda5786b76ee10e4b6ef8c336aee362 100644
--- a/lib/runtime/dart/js.js
+++ b/lib/runtime/dart/js.js
@@ -12,7 +12,7 @@ dart_library.library('dart/js', null, /* Imports */[
return _wrapToDart(dart.global);
}
});
- let _jsObject = Symbol('_jsObject');
+ const _jsObject = Symbol('_jsObject');
class JsObject extends core.Object {
_fromJs(jsObject) {
this[_jsObject] = jsObject;
@@ -166,9 +166,9 @@ dart_library.library('dart/js', null, /* Imports */[
}),
methods: () => ({apply: [dart.dynamic, [core.List], {thisArg: dart.dynamic}]})
});
- let _checkIndex = Symbol('_checkIndex');
- let _checkInsertIndex = Symbol('_checkInsertIndex');
- let JsArray$ = dart.generic(function(E) {
+ const _checkIndex = Symbol('_checkIndex');
+ const _checkInsertIndex = Symbol('_checkInsertIndex');
+ const JsArray$ = dart.generic(function(E) {
class JsArray extends dart.mixin(JsObject, collection.ListMixin$(E)) {
JsArray() {
super._fromJs([]);
@@ -318,7 +318,7 @@ dart_library.library('dart/js', null, /* Imports */[
return o instanceof Blob || o instanceof Event || window.KeyRange && o instanceof KeyRange || o instanceof ImageData || o instanceof Node || window.TypedData && o instanceof TypedData || o instanceof Window;
}
dart.fn(_isBrowserType, core.bool, [dart.dynamic]);
- let _dartObj = Symbol('_dartObj');
+ const _dartObj = Symbol('_dartObj');
class _DartObject extends core.Object {
_DartObject(dartObj) {
this[_dartObj] = dartObj;
@@ -415,8 +415,8 @@ dart_library.library('dart/js', null, /* Imports */[
return ret;
}
dart.fn(allowInteropCaptureThis, core.Function, [core.Function]);
- let __CastType0$ = dart.generic(function(E) {
- let __CastType0 = dart.typedef('__CastType0', () => dart.functionType(dart.dynamic, [E]));
+ const __CastType0$ = dart.generic(function(E) {
+ const __CastType0 = dart.typedef('__CastType0', () => dart.functionType(dart.dynamic, [E]));
return __CastType0;
});
let __CastType0 = __CastType0$();
« no previous file with comments | « lib/runtime/dart/isolate.js ('k') | lib/runtime/dart/math.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698