| 76 | |
| 77 | constexpr double kMaxStackSizeRatio = 0.75; |
| 78 | |
| 79 | static int handleInterrupt(JSRuntime* rt, void* opaque) { |
| 80 | auto& jsContext = *reinterpret_cast<QuickJSJavaScriptContext*>(opaque); |
| 81 | if (jsContext.interruptRequested()) { |
| 82 | jsContext.onInterrupt(); |
| 83 | } |
| 84 | return 0; |
| 85 | } |
| 86 | |
| 87 | QuickJSJavaScriptContext::QuickJSJavaScriptContext(Valdi::JavaScriptTaskScheduler* taskScheduler) |
nothing calls this directly
no test coverage detected