From 08f48c5b3090e47bd676287afdbea82437c21249 Mon Sep 17 00:00:00 2001 From: Tim Mickel Date: Wed, 31 Aug 2016 12:03:41 -0400 Subject: [PATCH] Always start runtime with an empty target list. --- src/engine/runtime.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/runtime.js b/src/engine/runtime.js index d244544aa..1de5a9bc2 100644 --- a/src/engine/runtime.js +++ b/src/engine/runtime.js @@ -18,9 +18,8 @@ var defaultBlockPackages = { /** * Manages targets, scripts, and the sequencer. - * @param {!Array.} targets List of targets for this runtime. */ -function Runtime (targets) { +function Runtime () { // Bind event emitter EventEmitter.call(this); @@ -28,8 +27,9 @@ function Runtime (targets) { /** * Target management and storage. + * @type {Array.} */ - this.targets = targets; + this.targets = []; /** * A list of threads that are currently running in the VM.