From c3f9e0945b5214e75d8d2f229390737036921913 Mon Sep 17 00:00:00 2001 From: "Michael \"Z\" Goddard" Date: Fri, 18 Jan 2019 17:20:06 -0500 Subject: [PATCH] determine _pushThread defaults without Object.assign --- src/engine/runtime.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/engine/runtime.js b/src/engine/runtime.js index b5739579c..c871e0707 100644 --- a/src/engine/runtime.js +++ b/src/engine/runtime.js @@ -1434,16 +1434,11 @@ class Runtime extends EventEmitter { * @return {!Thread} The newly created thread. */ _pushThread (id, target, opts) { - opts = Object.assign({ - stackClick: false, - updateMonitor: false - }, opts); - const thread = new Thread(id); thread.target = target; - thread.stackClick = opts.stackClick; - thread.updateMonitor = opts.updateMonitor; - thread.blockContainer = opts.updateMonitor ? + thread.stackClick = Boolean(opts && opts.stackClick); + thread.updateMonitor = Boolean(opts && opts.updateMonitor); + thread.blockContainer = thread.updateMonitor ? this.monitorBlocks : target.blocks;