- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for IsUndefined (0.14 sec)
-
src/cmd/internal/osinfo/os_js.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 19 22:43:17 UTC 2023 - 1K bytes - Viewed (0) -
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) -
src/syscall/fs_js.go
_, err := fsCall("fchown", fd, uint32(uid), uint32(gid)) return err } func Lchown(path string, uid, gid int) error { if err := checkPath(path); err != nil { return err } if jsFS.Get("lchown").IsUndefined() { // fs.lchown is unavailable on Linux until Node.js 10.6.0 // TODO(neelance): remove when we require at least this Node.js version return ENOSYS } _, err := fsCall("lchown", path, uint32(uid), uint32(gid))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 11 18:19:17 UTC 2023 - 10.8K bytes - Viewed (0)