MCPcopy Create free account
hub / github.com/buke/quickjs-go / Bool

Method Bool

context.go:305–307  ·  view source on GitHub ↗

Bool returns a bool value with given bool. Deprecated: Use NewBool() instead.

(b bool)

Source from the content-addressed store, hash-verified

303// Bool returns a bool value with given bool.
304// Deprecated: Use NewBool() instead.
305func (ctx *Context) Bool(b bool) *Value {
306 return ctx.NewBool(b)
307}
308
309// NewInt32 returns a int32 value with given int32.
310func (ctx *Context) NewInt32(v int32) *Value {

Callers 2

TestDeprecatedAPIsFunction · 0.95

Calls 1

NewBoolMethod · 0.95

Tested by 2

TestDeprecatedAPIsFunction · 0.76