This commit is contained in:
parent
575fd8e37a
commit
7879184d56
4 changed files with 40 additions and 59 deletions
|
|
@ -5,8 +5,9 @@ package main
|
|||
import (
|
||||
"errors"
|
||||
"log"
|
||||
"neemek.com/anglais/core"
|
||||
"syscall/js"
|
||||
|
||||
"neemek.com/anglais/core"
|
||||
)
|
||||
|
||||
type JsResolver struct {
|
||||
|
|
@ -91,7 +92,7 @@ func run(_ js.Value, args []js.Value) interface{} {
|
|||
}
|
||||
}()
|
||||
|
||||
err = compiler.Compile(tree)
|
||||
_, err = compiler.Compile(tree)
|
||||
if err != nil {
|
||||
var e core.CompilerError
|
||||
if errors.As(err, &e) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue