fix wasm and tests
All checks were successful
/ test (push) Successful in 51s

This commit is contained in:
Neemek 2026-07-15 21:46:14 +02:00
parent 575fd8e37a
commit 7879184d56
Signed by: neemek
GPG key ID: 84FFE4D7D40AB25E
4 changed files with 40 additions and 59 deletions

View file

@ -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) {