Files
webrtc/js_compare_legacy.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
196 B
Go

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