We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35cbc37 commit 1e39098Copy full SHA for 1e39098
playground/playground.go
@@ -8,6 +8,7 @@ import (
8
"go/scanner"
9
"go/token"
10
"go/types"
11
+ "runtime"
12
"strings"
13
"time"
14
@@ -194,7 +195,7 @@ func main() {
194
195
196
jsCode := bytes.NewBuffer(nil)
197
jsCode.WriteString("try{\n")
- compiler.WriteProgramCode(allPkgs, &compiler.SourceMapFilter{Writer: jsCode})
198
+ compiler.WriteProgramCode(allPkgs, &compiler.SourceMapFilter{Writer: jsCode}, runtime.Version())
199
jsCode.WriteString("} catch (err) {\ngoPanicHandler(err.message);\n}\n")
200
js.Global.Set("$checkForDeadlock", true)
201
js.Global.Call("eval", js.InternalObject(jsCode.String()))
0 commit comments