2021-03-20 15:45:44 +07:00
|
|
|
package wasm
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"syscall/js"
|
|
|
|
)
|
|
|
|
|
2021-03-21 12:29:31 +07:00
|
|
|
// FromJSValue converts a given js.Value to the Go equivalent.
|
|
|
|
// The new value of 'out' is undefined if FromJSValue returns an error.
|
2021-03-20 15:45:44 +07:00
|
|
|
func FromJSValue(x js.Value, out interface{}) error {
|
|
|
|
// TODO
|
|
|
|
return fmt.Errorf("unimplemented")
|
|
|
|
}
|