runtime: support syscall/js
This commit is contained in:
@@ -47,6 +47,7 @@ var hasAltPkg = map[string]none{
|
||||
"sync": {},
|
||||
"sync/atomic": {},
|
||||
"syscall": {},
|
||||
"syscall/js": {},
|
||||
"time": {},
|
||||
"os": {},
|
||||
"os/exec": {},
|
||||
|
||||
@@ -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 (
|
||||
@@ -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 {
|
||||
Reference in New Issue
Block a user