runtime: support syscall/js
This commit is contained in:
@@ -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": {},
|
||||||
|
|||||||
@@ -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 (
|
||||||
@@ -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 {
|
||||||
Reference in New Issue
Block a user