Files
webrtc/js_compare.go
Slugalisk d5998ae2dd Replace js.Value comparisons deprecated in Go 1.14
Use IsUndefined() and IsNull() to check for undefined and null js.Value
when building with Go 1.14.
2020-03-07 23:08:51 -08:00

14 lines
187 B
Go

// +build js,go1.14
package webrtc
import "syscall/js"
func jsValueIsUndefined(v js.Value) bool {
return v.IsUndefined()
}
func jsValueIsNull(v js.Value) bool {
return v.IsNull()
}