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

Function getConstructorClassID

class.go:35–40  ·  view source on GitHub ↗

getConstructorClassID retrieves the classID for a given constructor

(ctx *Context, constructor C.JSValue)

Source from the content-addressed store, hash-verified

33
34// getConstructorClassID retrieves the classID for a given constructor
35func getConstructorClassID(ctx *Context, constructor C.JSValue) (uint32, bool) {
36 if ctx == nil || ctx.runtime == nil {
37 return 0, false
38 }
39 return ctx.runtime.getConstructorClassID(constructor)
40}
41
42func deleteConstructorClassID(ctx *Context, constructor C.JSValue) {
43 if ctx == nil || ctx.runtime == nil {

Calls 1

getConstructorClassIDMethod · 0.80