registerContext registers Go Context with C JSContext (internal use).
(cCtx *C.JSContext, goCtx *Context)
| 18 | |
| 19 | // registerContext registers Go Context with C JSContext (internal use). |
| 20 | func registerContext(cCtx *C.JSContext, goCtx *Context) { |
| 21 | contextMapping.Store(cCtx, goCtx) |
| 22 | } |
| 23 | |
| 24 | // unregisterContext removes mapping when Context is closed (internal use). |
| 25 | func unregisterContext(cCtx *C.JSContext) { |