- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for IsUndefined (0.31 sec)
-
src/net/http/roundtrip_js.go
errMsg := err.Call("toString").String() // Errors can optionally contain a cause. if cause := err.Get("cause"); !cause.IsUndefined() { // The exact type of the cause is not defined, // but if it's another error, we can call toString() on it too. if !cause.Get("toString").IsUndefined() { errMsg += ": " + cause.Call("toString").String() } else if cause.Type() == js.TypeString { errMsg += ": " + cause.String()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 11.8K bytes - Viewed (0) -
src/syscall/js/js_test.go
t.Errorf("NaN is equal to NaN") } } func TestUndefined(t *testing.T) { if !js.Undefined().IsUndefined() { t.Errorf("undefined is not undefined") } if !js.Undefined().Equal(js.Undefined()) { t.Errorf("undefined is not equal to undefined") } if dummys.IsUndefined() { t.Errorf("object is undefined") } if js.Undefined().IsNull() { t.Errorf("undefined is null") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 19 14:35:26 UTC 2024 - 17.7K bytes - Viewed (0) -
src/syscall/js/js.go
return v.ref == w.ref && v.ref != valueNaN.ref } // Undefined returns the JavaScript value "undefined". func Undefined() Value { return valueUndefined } // IsUndefined reports whether v is the JavaScript value "undefined". func (v Value) IsUndefined() bool { return v.ref == valueUndefined.ref } // Null returns the JavaScript value "null". func Null() Value { return valueNull }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 19 14:35:26 UTC 2024 - 19.5K bytes - Viewed (0)