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

Unified Diff: sky/examples/fps-counter.sky

Issue 845403009: Turn on harmony arrays and regexp. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « sky/engine/bindings/core/v8/V8Initializer.cpp ('k') | sky/framework/sky-element/sky-element.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/fps-counter.sky
diff --git a/sky/examples/fps-counter.sky b/sky/examples/fps-counter.sky
index 21fa0a1ce650926588e845120f66547ef7baa1e4..e560d064f117ce6662959481e16a03c2ef1d1cbb 100644
--- a/sky/examples/fps-counter.sky
+++ b/sky/examples/fps-counter.sky
@@ -26,11 +26,9 @@ module.exports = class extends SkyElement {
this.rafId = 0;
this.currentDeltaIndex = 0;
this.deltas = new Array(kMaxDeltaLength);
- for (var i = 0; i < kMaxDeltaLength; ++i)
- this.deltas[i] = 0;
+ this.deltas.fill(0);
this.history = new Array(kMaxDeltaLength);
- for (var i = 0; i < kMaxDeltaLength; ++i)
- this.history[i] = 0;
+ this.history.fill(0);
}
attached() {
this.scheduleTick();
« no previous file with comments | « sky/engine/bindings/core/v8/V8Initializer.cpp ('k') | sky/framework/sky-element/sky-element.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698