getConstructorClassID retrieves the classID for a given constructor
(ctx *Context, constructor C.JSValue)
| 33 | |
| 34 | // getConstructorClassID retrieves the classID for a given constructor |
| 35 | func 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 | |
| 42 | func deleteConstructorClassID(ctx *Context, constructor C.JSValue) { |
| 43 | if ctx == nil || ctx.runtime == nil { |