diff options
Diffstat (limited to 'lib/compilers/golang.js')
-rw-r--r-- | lib/compilers/golang.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/compilers/golang.js b/lib/compilers/golang.js index 18a299f17..df63bc8bf 100644 --- a/lib/compilers/golang.js +++ b/lib/compilers/golang.js @@ -25,8 +25,8 @@ const Compile = require('../base-compiler'), _ = require('underscore-node'); -function compilenewgol(info, env) { - const compiler = new Compile(info, env); +function compilenewgol(info, env, langId) { + const compiler = new Compile(info, env, langId); compiler.originalGetDefaultExecOptions = compiler.getDefaultExecOptions; function convertNewGoL(code) { @@ -70,7 +70,7 @@ function compilenewgol(info, env) { compiler.getDefaultExecOptions = function () { const execOptions = this.originalGetDefaultExecOptions(); - const goroot = this.env.compilerProps("compiler." + this.compiler.id + ".goroot"); + const goroot = this.compilerProps("compiler." + this.compiler.id + ".goroot"); if (goroot) { execOptions.env.GOROOT = goroot; } |