From 2ffb17458df3dd1b29ca00476f810bcc69bd0bfb Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Sun, 11 Dec 2016 12:45:35 -0500 Subject: [PATCH] Update index.js --- src/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.js b/src/index.js index 51a91735..7d914670 100644 --- a/src/index.js +++ b/src/index.js @@ -166,6 +166,9 @@ VirtualMachine.prototype.toPrettyJSON = function (testing) { }; VirtualMachine.prototype.toJSON = function () { + if (this.runtime.targets.hasOwnProperty('testing') == false) { + this.runtime.targets.testing = false; + } var obj = new Object(); obj.sprites = this.runtime.targets; obj.meta = new Object();