unregisterContext removes mapping when Context is closed (internal use).
(cCtx *C.JSContext)
| 23 | |
| 24 | // unregisterContext removes mapping when Context is closed (internal use). |
| 25 | func unregisterContext(cCtx *C.JSContext) { |
| 26 | contextMapping.Delete(cCtx) |
| 27 | } |
| 28 | |
| 29 | // getContextFromJS gets Go Context from C JSContext (internal use). |
| 30 | func getContextFromJS(cCtx *C.JSContext) *Context { |