export goInterruptHandler
(runtimePtr *C.JSRuntime)
| 41 | |
| 42 | //export goInterruptHandler |
| 43 | func goInterruptHandler(runtimePtr *C.JSRuntime) C.int { |
| 44 | runtime := getRuntimeFromJS(runtimePtr) |
| 45 | if runtime == nil { |
| 46 | return C.int(0) |
| 47 | } |
| 48 | return C.int(runtime.callInterruptHandler()) |
| 49 | } |
| 50 | |
| 51 | //export goFunctionProxy |
| 52 | func goFunctionProxy(ctx *C.JSContext, thisVal C.JSValueConst, |