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