示例#1
0
func (val_ *Value) IsBoolean() bool {
	return val_.hasJsType(isBoolean, func(self unsafe.Pointer) bool {
		return C.V8_Value_IsBoolean(self) == 1
	})
}
示例#2
0
文件: v8_value.go 项目: yangou/go-v8
func (v *Value) IsBoolean() bool {
	return v.checkJsType(isBoolean, func(self unsafe.Pointer) bool {
		return C.V8_Value_IsBoolean(self) == 1
	})
}