Returns this object's mapping for the given context key, in the form of an an array, creating the mapping if needed. The key may be anything suitable for use in a Map. The returned array is intended to be used as a pair of [JSValue, WasmFuncPtr], where the first element
(key)
| 8914 | to this.convertArg() and the second is its WASM form. |
| 8915 | */ |
| 8916 | contextMap(key){ |
| 8917 | const cm = (this.__cmap || (this.__cmap = new Map)); |
| 8918 | let rc = cm.get(key); |
| 8919 | if(undefined===rc) cm.set(key, (rc = [])); |
| 8920 | return rc; |
| 8921 | } |
| 8922 | |
| 8923 | /** |
| 8924 | Gets called via xWrap() to "convert" v to a WASM-bound function |
no test coverage detected