| 274 | block(cachingJSRuntime!!) |
| 275 | } |
| 276 | } |
| 277 | |
| 278 | override fun createScopedJSRuntime(scopeName: String, block: (ValdiScopedJSRuntime) -> Unit) { |
| 279 | val dispatchAttribution = composeJsThreadAttribution(CREATE_SCOPED_JS_RUNTIME_ATTRIBUTION, scopeName) |
| 280 | runOnJsThread(dispatchAttribution) { |
| 281 | val jsRuntime = native.getJSRuntime() |
| 282 | val scopedRuntime = ValdiJSRuntimeImpl(jsRuntime, this, jsRuntime.createNativeObjectsManager(scopeName)) |
| 283 | block(scopedRuntime) |
| 284 | } |
| 285 | } |
| 286 | |
| 287 | fun performGcNow(synchronous: Boolean) { |
nothing calls this directly
no test coverage detected