From 24d58a197173fc494f37f23866d113c49a32cc27 Mon Sep 17 00:00:00 2001 From: Nick Winter Date: Fri, 29 Jul 2016 16:36:12 -0700 Subject: [PATCH] Handle old programming languages during simulation --- app/lib/simulator/Simulator.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/app/lib/simulator/Simulator.coffee b/app/lib/simulator/Simulator.coffee index 7c26e6c08..220ac4873 100644 --- a/app/lib/simulator/Simulator.coffee +++ b/app/lib/simulator/Simulator.coffee @@ -381,6 +381,7 @@ module.exports = class Simulator extends CocoClass sessionInfo = _.filter(@task.getSessions(), {team: team})[0] fullSpellName = _.string.slugify(hero) + '/plan' submittedCodeLanguage = sessionInfo?.submittedCodeLanguage ? 'javascript' + submittedCodeLanguage = 'javascript' if submittedCodeLanguage in ['clojure', 'io'] # No longer supported submittedCode = LZString.decompressFromUTF16 sessionInfo?.submittedCode?[_.string.slugify(hero)]?.plan ? '' aether = new Aether createAetherOptions functionName: 'plan', codeLanguage: submittedCodeLanguage, skipProtectAPI: false try