mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 09:35:39 -05:00
Handle old programming languages during simulation
This commit is contained in:
parent
d388975217
commit
24d58a1971
1 changed files with 1 additions and 0 deletions
|
@ -381,6 +381,7 @@ module.exports = class Simulator extends CocoClass
|
||||||
sessionInfo = _.filter(@task.getSessions(), {team: team})[0]
|
sessionInfo = _.filter(@task.getSessions(), {team: team})[0]
|
||||||
fullSpellName = _.string.slugify(hero) + '/plan'
|
fullSpellName = _.string.slugify(hero) + '/plan'
|
||||||
submittedCodeLanguage = sessionInfo?.submittedCodeLanguage ? 'javascript'
|
submittedCodeLanguage = sessionInfo?.submittedCodeLanguage ? 'javascript'
|
||||||
|
submittedCodeLanguage = 'javascript' if submittedCodeLanguage in ['clojure', 'io'] # No longer supported
|
||||||
submittedCode = LZString.decompressFromUTF16 sessionInfo?.submittedCode?[_.string.slugify(hero)]?.plan ? ''
|
submittedCode = LZString.decompressFromUTF16 sessionInfo?.submittedCode?[_.string.slugify(hero)]?.plan ? ''
|
||||||
aether = new Aether createAetherOptions functionName: 'plan', codeLanguage: submittedCodeLanguage, skipProtectAPI: false
|
aether = new Aether createAetherOptions functionName: 'plan', codeLanguage: submittedCodeLanguage, skipProtectAPI: false
|
||||||
try
|
try
|
||||||
|
|
Loading…
Reference in a new issue