diff --git a/src/engine/block-utility.js b/src/engine/block-utility.js index b957342a..b163e4d5 100644 --- a/src/engine/block-utility.js +++ b/src/engine/block-utility.js @@ -21,6 +21,10 @@ class BlockUtility { * @type {?Thread} */ this.thread = thread; + + this._nowObj = { + now: () => this.sequencer.runtime.currentMSecs + }; } /** @@ -46,9 +50,7 @@ class BlockUtility { */ get nowObj () { if (this.runtime) { - return { - now: () => this.runtime.currentMSecs - }; + return this._nowObj; } return null; }