From 42a7db75ecfc22851292a7a06d723e08b9a5561a Mon Sep 17 00:00:00 2001 From: Elliott Sprehn Date: Thu, 15 Jan 2015 17:12:17 -0800 Subject: [PATCH] Turn on harmony arrays and regexp. adamk@ says these are pretty stable. R=abarth@chromium.org Review URL: https://codereview.chromium.org/845403009 --- examples/fps-counter.sky | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/fps-counter.sky b/examples/fps-counter.sky index 21fa0a1ce6..e560d064f1 100644 --- a/examples/fps-counter.sky +++ b/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();