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 a60920892..b550ee0d6 100644 --- a/lib/compilers/golang.js +++ b/lib/compilers/golang.js @@ -25,8 +25,8 @@ var Compile = require('../base-compiler'); var _ = require('underscore-node'); -function compilenewgol(info, env) { - var compiler = new Compile(info, env); +function compilenewgol(info, env, langId) { + var compiler = new Compile(info, env, langId); compiler.originalGetDefaultExecOptions = compiler.getDefaultExecOptions; function convertNewGoL(code) { @@ -71,7 +71,7 @@ function compilenewgol(info, env) { compiler.getDefaultExecOptions = function () { var execOptions = this.originalGetDefaultExecOptions(); - var goroot = this.env.compilerProps("compiler." + this.compiler.id + ".goroot"); + var goroot = this.compilerProps("compiler." + this.compiler.id + ".goroot"); if (goroot) { execOptions.env.GOROOT = goroot; } |