runtime: support syscall/js

This commit is contained in:
visualfc
2025-07-07 10:31:22 +08:00
parent 734b3a075e
commit e77c3a040d
6 changed files with 5 additions and 1 deletions

View File

@@ -47,6 +47,7 @@ var hasAltPkg = map[string]none{
"sync": {},
"sync/atomic": {},
"syscall": {},
"syscall/js": {},
"time": {},
"os": {},
"os/exec": {},

View File

@@ -7,7 +7,7 @@ import (
_ "unsafe"
c "github.com/goplus/llgo/runtime/internal/clite"
_ "github.com/goplus/llgo/runtime/js/embind"
_ "github.com/goplus/llgo/runtime/internal/embind"
)
var (

View File

@@ -18,6 +18,9 @@ import (
c "github.com/goplus/llgo/runtime/internal/clite"
)
//llgo:skipall
type _js struct{}
// Value represents a JavaScript value. The zero value is the JavaScript value "undefined".
// Values can be checked for equality with the Equal method.
type Value struct {