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": {},
"sync/atomic": {}, "sync/atomic": {},
"syscall": {}, "syscall": {},
"syscall/js": {},
"time": {}, "time": {},
"os": {}, "os": {},
"os/exec": {}, "os/exec": {},

View File

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

View File

@@ -18,6 +18,9 @@ import (
c "github.com/goplus/llgo/runtime/internal/clite" 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". // Value represents a JavaScript value. The zero value is the JavaScript value "undefined".
// Values can be checked for equality with the Equal method. // Values can be checked for equality with the Equal method.
type Value struct { type Value struct {