Always start runtime with an empty target list.

This commit is contained in:
Tim Mickel 2016-08-31 12:03:41 -04:00
parent ba0cc0dcfc
commit 08f48c5b30

View file

@ -18,9 +18,8 @@ var defaultBlockPackages = {
/** /**
* Manages targets, scripts, and the sequencer. * Manages targets, scripts, and the sequencer.
* @param {!Array.<Target>} targets List of targets for this runtime.
*/ */
function Runtime (targets) { function Runtime () {
// Bind event emitter // Bind event emitter
EventEmitter.call(this); EventEmitter.call(this);
@ -28,8 +27,9 @@ function Runtime (targets) {
/** /**
* Target management and storage. * Target management and storage.
* @type {Array.<!Target>}
*/ */
this.targets = targets; this.targets = [];
/** /**
* A list of threads that are currently running in the VM. * A list of threads that are currently running in the VM.