registerConstructorClassID stores the constructor -> classID mapping
(ctx *Context, constructor C.JSValue, classID uint32)
| 25 | |
| 26 | // registerConstructorClassID stores the constructor -> classID mapping |
| 27 | func registerConstructorClassID(ctx *Context, constructor C.JSValue, classID uint32) { |
| 28 | if ctx == nil || ctx.runtime == nil { |
| 29 | return |
| 30 | } |
| 31 | ctx.runtime.registerConstructorClassID(constructor, classID) |
| 32 | } |
| 33 | |
| 34 | // getConstructorClassID retrieves the classID for a given constructor |
| 35 | func getConstructorClassID(ctx *Context, constructor C.JSValue) (uint32, bool) { |